|
|
@ -403,12 +403,15 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
complete: function (data) {
|
|
|
|
complete: function (data) {
|
|
|
|
// Schedule the next
|
|
|
|
// Schedule the next
|
|
|
|
if (data !== "") {
|
|
|
|
if (data.responseText !== "") {
|
|
|
|
notificationTimeout = setTimeout(doNotificationsAjax, 100);
|
|
|
|
notificationTimeout = setTimeout(doNotificationsAjax, 100);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
notificationTimeout = setTimeout(doNotificationsAjax, 1000);
|
|
|
|
notificationTimeout = setTimeout(doNotificationsAjax, 5000);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
error: function () {
|
|
|
|
|
|
|
|
notificationTimeout = setTimeout(doNotificationsAjax, 5000);
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
notificationTimeout = setTimeout(doNotificationsAjax, 1000);
|
|
|
|
notificationTimeout = setTimeout(doNotificationsAjax, 1000);
|
|
|
|