Commit 90d05b07 authored by Thonier Florian's avatar Thonier Florian

main; The first call of ajaxStart is made inside a timeout function

link to #3535
parent 196a9cb5
...@@ -160,23 +160,27 @@ $(document).ajaxStart(function () { ...@@ -160,23 +160,27 @@ $(document).ajaxStart(function () {
ajaxOn = true; ajaxOn = true;
// Start process without print, only cursor change // Start process without print, only cursor change
db.ajax_indicator_start()
/*
//show ajax indicator (wheel)
timeout = setTimeout(function(){ timeout = setTimeout(function(){
if (ajaxOn){ if (ajaxOn){
db.ajax_indicator_long() db.ajax_indicator_start()
//show ajax indicator (wheel)
setTimeout(function(){ setTimeout(function(){
if (ajaxOn) { if (ajaxOn){
//show ajax indicator message db.ajax_indicator_long()
db.ajax_indicator_msg("Still computing content...")
} setTimeout(function(){
}, AJAX_TIMEOUT_MSG); if (ajaxOn) {
} //show ajax indicator message
}, AJAX_TIMEOUT_LONG); db.ajax_indicator_msg("Still computing content...")
*/ }
}, AJAX_TIMEOUT_MSG);
}
}, AJAX_TIMEOUT_LONG);
}
}, AJAX_TIMEOUT_START);
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment