Merge pull request #391 from ansible/no_clearing_of_playbook_on_different_proj

made playbooks that are similar across branches not clear out the form input
This commit is contained in:
jlmitch5 2015-08-28 10:14:42 -04:00
commit 29f6625598

View File

@ -490,9 +490,6 @@ export function JobTemplatesAdd($filter, $scope, $rootScope, $compile, $location
}
$scope.selectPlaybookUnregister = $scope.$watch('project', function (newValue, oldValue) {
if (newValue !== oldValue) {
if (!Empty(oldValue)) {
$scope.playbook = null;
}
selectPlaybook(oldValue, newValue);
checkSCMStatus();
}
@ -827,9 +824,6 @@ export function JobTemplatesEdit($filter, $scope, $rootScope, $compile, $locatio
}
$scope.watchProjectUnregister = $scope.$watch('project', function (newValue, oldValue) {
if (newValue !== oldValue) {
if (!Empty(oldValue)) {
$scope.playbook = null;
}
getPlaybooks($scope.project);
checkSCMStatus();
}