Set a default value for job-checking interval
This commit is contained in:
@@ -133,6 +133,12 @@ $(document).ready(function() {
|
||||
/*
|
||||
* Notification stuff
|
||||
*/
|
||||
|
||||
// set a default JOBS_CHECK_INTERVAL
|
||||
if(typeof(window.JOBS_CHECK_INTERVAL) == "undefined") {
|
||||
JOBS_CHECK_INTERVAL = 5;
|
||||
}
|
||||
|
||||
$('#notifications').hide();
|
||||
getNotifications();
|
||||
setInterval('getNotifications()', '5000');
|
||||
|
||||
Reference in New Issue
Block a user