CC-4943: Raspberry Pi optimization: don't create new background AJAX request until the previous one has returned

-fixed
This commit is contained in:
Martin Konecny 2013-02-14 12:58:31 -05:00
parent 30c47df93d
commit bb7e56e39e
7 changed files with 22 additions and 12 deletions

View file

@ -93,6 +93,8 @@ function checkCalendarSCUploadStatus(){
else if (json.sc_id == "-3") {
span.removeClass("progress").addClass("sc-error");
}
setTimeout(checkCalendarSCUploadStatus, 5000);
}
function checkSCUploadStatusRequest() {
@ -328,7 +330,7 @@ function alertShowErrorAndReload(){
}
$(document).ready(function() {
setInterval(checkCalendarSCUploadStatus, 5000);
checkCalendarSCUploadStatus();
$.contextMenu({
selector: 'div.fc-event',