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 () {
ajaxOn = true;
// Start process without print, only cursor change
db.ajax_indicator_start()
/*
//show ajax indicator (wheel)
timeout = setTimeout(function(){
if (ajaxOn){
db.ajax_indicator_long()
setTimeout(function(){
if (ajaxOn) {
//show ajax indicator message
db.ajax_indicator_msg("Still computing content...")
}
}, AJAX_TIMEOUT_MSG);
}
}, AJAX_TIMEOUT_LONG);
*/
if (ajaxOn){
db.ajax_indicator_start()
//show ajax indicator (wheel)
setTimeout(function(){
if (ajaxOn){
db.ajax_indicator_long()
setTimeout(function(){
if (ajaxOn) {
//show ajax indicator message
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