1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Merge pull request #2998 from mabashian/adhoc-lots-of-gets

Remove extra adhoc GET requests when performing subsequent adhoc commands
This commit is contained in:
Michael Abashian 2016-07-14 11:13:13 -04:00 committed by GitHub
commit deb1c1652b

View File

@ -39,6 +39,12 @@ export function JobStdoutController ($rootScope, $scope, $state, $stateParams,
}
});
// Unbind $rootScope socket event binding(s) so that they don't get triggered
// in another instance of this controller
$scope.$on('$destroy', function() {
$scope.removeJobStatusChange();
});
// Set the parse type so that CodeMirror knows how to display extra params YAML/JSON
$scope.parseType = 'yaml';