1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-25 07:47:05 +00:00

control panel: sometimes the ajax loading modal would show after operations were already done

Needed to add the clearQueue flag to jQuery's stop() method
This commit is contained in:
Joshua Tauberer 2015-05-03 12:24:26 +00:00
parent f0143fd6c9
commit f1760b516d

View File

@ -274,7 +274,7 @@ function ajax(options) {
function hide_loading_indicator() {
ajax_num_executing_requests--;
if (ajax_num_executing_requests == 0)
$('#ajax_loading_indicator').stop().hide(); // stop() prevents an ongoing fade from causing the thing to be shown again after this call
$('#ajax_loading_indicator').stop(true).hide(); // stop() prevents an ongoing fade from causing the thing to be shown again after this call
}
var old_success = options.success;
var old_error = options.error;