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

Fixed scope management for JobStatusChange events.

This commit is contained in:
Chris Houseknecht 2014-04-24 09:38:28 -04:00
parent 389d99875f
commit cdc6a4ed7c
2 changed files with 2 additions and 2 deletions

View File

@ -490,7 +490,7 @@ function InventoriesEdit($scope, $location, $routeParams, $compile, $log, $rootS
}); });
// Handle inventory sync status changes // Handle inventory sync status changes
if ($rootScope.rmoveJobStatusChange) { if ($rootScope.removeJobStatusChange) {
$rootScope.removeJobStatusChange(); $rootScope.removeJobStatusChange();
} }
$rootScope.removeJobStatusChange = $rootScope.$on('JobStatusChange', function(e, data) { $rootScope.removeJobStatusChange = $rootScope.$on('JobStatusChange', function(e, data) {

View File

@ -77,7 +77,7 @@ function ProjectsList ($scope, $rootScope, $location, $log, $routeParams, Rest,
}); });
// Handle project update status changes // Handle project update status changes
if ($rootScope.rmoveJobStatusChange) { if ($rootScope.removeJobStatusChange) {
$rootScope.removeJobStatusChange(); $rootScope.removeJobStatusChange();
} }
$rootScope.removeJobStatusChange = $rootScope.$on('JobStatusChange', function(e, data) { $rootScope.removeJobStatusChange = $rootScope.$on('JobStatusChange', function(e, data) {