From cd486b6d9a55d08202c536963e8abf4229b64524 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Thu, 18 Dec 2014 16:29:14 -0500 Subject: [PATCH] Job detail page When the job run was complete the interval was not being turned off that would continue to update the DOM --- awx/ui/static/js/controllers/JobDetail.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/awx/ui/static/js/controllers/JobDetail.js b/awx/ui/static/js/controllers/JobDetail.js index d1f22248ed..c53a7463c2 100644 --- a/awx/ui/static/js/controllers/JobDetail.js +++ b/awx/ui/static/js/controllers/JobDetail.js @@ -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); }