Set a default value for job-checking interval

This commit is contained in:
Karsten Heiken
2012-07-17 14:26:55 +02:00
parent c9acb3419e
commit 9f830271d5

View File

@@ -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');