diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-17 10:55:50 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-17 10:55:50 -0700 |
commit | be1d49d017a71ee0967c47325986f482532a4f16 (patch) | |
tree | b375e6a982ae24bc43cbab72b65054b944c763e4 /modules/server_add | |
parent | 86681eebf7ee2bf28b12fd12ee6a5fe70bc36d0a (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.
Diffstat (limited to 'modules/server_add')
-rw-r--r-- | modules/server_add/js/server_add.js | 4 |
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); } } }); |