mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 06:51:10 +03:00
Fixed JT form Reset button
Had to make a small repair to Job Template form reset that was caused when i refactored the code to fill the form
This commit is contained in:
parent
ce879f58d8
commit
d9e69fc2c3
@ -762,8 +762,9 @@ function JobTemplatesEdit($scope, $rootScope, $compile, $location, $log, $routeP
|
||||
if ($scope.jobTemplateLoadedRemove) {
|
||||
$scope.jobTemplateLoadedRemove();
|
||||
}
|
||||
$scope.jobTemplateLoadedRemove = $scope.$on('jobTemplateLoaded', function (e, related_cloud_credential) {
|
||||
$scope.jobTemplateLoadedRemove = $scope.$on('jobTemplateLoaded', function (e, related_cloud_credential, masterObject) {
|
||||
var dft;
|
||||
master = masterObject;
|
||||
getPlaybooks($scope.project);
|
||||
|
||||
dft = ($scope.host_config_key === "" || $scope.host_config_key === null) ? 'false' : 'true';
|
||||
|
@ -181,8 +181,7 @@ angular.module('JobTemplatesHelper', ['Utilities'])
|
||||
relatedSets: relatedSets
|
||||
});
|
||||
|
||||
|
||||
scope.$emit('jobTemplateLoaded', data.related.cloud_credential);
|
||||
scope.$emit('jobTemplateLoaded', data.related.cloud_credential, master);
|
||||
})
|
||||
.error(function (data, status) {
|
||||
ProcessErrors(scope, data, status, form, {
|
||||
|
Loading…
Reference in New Issue
Block a user