|
|
@@ -248,7 +248,7 @@ from django.utils.translation import ugettext as _
|
|
|
|
|
|
% if 'jobbrowser' in apps:
|
|
|
var JB_CHECK_INTERVAL_IN_MILLIS = 30000;
|
|
|
- window.setTimeout(checkJobBrowserStatus, 10);
|
|
|
+ var checkJobBrowserStatusIdx = window.setTimeout(checkJobBrowserStatus, 10);
|
|
|
|
|
|
function checkJobBrowserStatus(){
|
|
|
$.getJSON("/${apps['jobbrowser'].display_name}/?format=json&state=running&user=${user.username}", function(data){
|
|
|
@@ -260,9 +260,9 @@ from django.utils.translation import ugettext as _
|
|
|
$("#jobBrowserCount").addClass("hide");
|
|
|
}
|
|
|
}
|
|
|
- window.setTimeout(checkJobBrowserStatus, JB_CHECK_INTERVAL_IN_MILLIS);
|
|
|
+ checkJobBrowserStatusIdx = window.setTimeout(checkJobBrowserStatus, JB_CHECK_INTERVAL_IN_MILLIS);
|
|
|
}).fail(function () {
|
|
|
- window.clearTimeout(checkJobBrowserStatus);
|
|
|
+ window.clearTimeout(checkJobBrowserStatusIdx);
|
|
|
});
|
|
|
}
|
|
|
% endif
|