1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +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:
Jared Tabor 2014-12-04 10:49:50 -05:00
parent ce879f58d8
commit d9e69fc2c3
2 changed files with 3 additions and 3 deletions

View File

@ -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';

View File

@ -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, {