Job detail page

When the job run was complete the interval was not being turned off that would continue to update the DOM
This commit is contained in:
Jared Tabor 2014-12-18 16:29:14 -05:00
parent f5100ee110
commit cd486b6d9a

View File

@ -181,7 +181,9 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar
ProcessErrors(scope, data, status, null, { hdr: 'Error!',
msg: 'Call to ' + url + '. GET returned: ' + status });
});
if ($rootScope.jobDetailInterval) {
window.clearInterval($rootScope.jobDetailInterval);
}
$log.debug('Job completed!');
$log.debug(scope.jobData);
}