From e15a25fc4617722d5dc7ea9a7c2bd93b73a48b34 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Wed, 26 Aug 2015 21:25:51 -0400 Subject: [PATCH] made playbooks that are similar across branches not clear out the form input --- awx/ui/client/src/controllers/JobTemplates.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/awx/ui/client/src/controllers/JobTemplates.js b/awx/ui/client/src/controllers/JobTemplates.js index 6921b51e9e..b95d1b3bd0 100644 --- a/awx/ui/client/src/controllers/JobTemplates.js +++ b/awx/ui/client/src/controllers/JobTemplates.js @@ -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(); }