summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-09-17 10:55:50 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-09-17 10:55:50 -0700
commitbe1d49d017a71ee0967c47325986f482532a4f16 (patch)
treeb375e6a982ae24bc43cbab72b65054b944c763e4
parent86681eebf7ee2bf28b12fd12ee6a5fe70bc36d0a (diff)
Change the timeout on resubmitting the next task iteration to 25ms instead of. This allows the jQuery.ajax method to complete its processing. Otherwise, the browser can spend time thrashing around trying to send the next request.
-rw-r--r--modules/server_add/js/server_add.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/server_add/js/server_add.js b/modules/server_add/js/server_add.js
index 51ef41a7..4c411715 100644
--- a/modules/server_add/js/server_add.js
+++ b/modules/server_add/js/server_add.js
@@ -39,7 +39,7 @@ function start_add() {
success: function(data, textStatus) {
$("#gStatus").html(data.status);
$("#gServerAdd .gProgressBar").progressbar("value", data.percent_complete);
- setTimeout(function() { run_add(data.url); }, 0);
+ setTimeout(function() { run_add(data.url); }, 25);
}
});
return false;
@@ -56,7 +56,7 @@ function run_add(url) {
if (data.done) {
$("#gServerAddProgress").slideUp();
} else {
- setTimeout(function() { run_add(url); }, 0);
+ setTimeout(function() { run_add(url); }, 25);
}
}
});