mirror of
https://github.com/ansible/awx.git
synced 2026-04-07 02:59:21 -02:30
Copy JT
Cleared the value of the copy JT form of any stale text
This commit is contained in:
@@ -165,10 +165,14 @@ function JobTemplatesList($scope, $rootScope, $location, $log, $routeParams, Res
|
|||||||
$scope.removeCopyDialogReady();
|
$scope.removeCopyDialogReady();
|
||||||
}
|
}
|
||||||
$scope.removeCopyDialogReady = $scope.$on('CopyDialogReady', function() {
|
$scope.removeCopyDialogReady = $scope.$on('CopyDialogReady', function() {
|
||||||
|
//clear any old remaining text
|
||||||
|
$scope.new_copy_name = "" ;
|
||||||
|
$scope.copy_form.$setPristine();
|
||||||
$('#copy-job-modal').dialog('open');
|
$('#copy-job-modal').dialog('open');
|
||||||
$('#job-copy-button').attr('ng-disabled', "!copy_form.$valid");
|
$('#job-copy-button').attr('ng-disabled', "!copy_form.$valid");
|
||||||
element = angular.element(document.getElementById('job-copy-button'));
|
element = angular.element(document.getElementById('job-copy-button'));
|
||||||
$compile(element)($scope);
|
$compile(element)($scope);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if ($scope.removeGoToCopy) {
|
if ($scope.removeGoToCopy) {
|
||||||
|
|||||||
Reference in New Issue
Block a user