[jb] Get rid of double job browser counter polling on Hue 4
@@ -298,6 +298,7 @@ from metadata.conf import has_optimizer, OPTIMIZER
});
% if 'jobbrowser' in apps:
+ if (!IS_HUE_4) {
var JB_CHECK_INTERVAL_IN_MILLIS = 30000;
var checkJobBrowserStatusIdx = window.setTimeout(checkJobBrowserStatus, 10);
var lastJobBrowserRequest = null;
@@ -326,7 +327,9 @@ from metadata.conf import has_optimizer, OPTIMIZER
window.clearTimeout(checkJobBrowserStatusIdx);
});
}
+
huePubSub.subscribe('check.job.browser', checkJobBrowserStatus);
+ }
% endif
function openDropdown(which, timeout){
