Commit f1760b51 authored by Joshua Tauberer's avatar Joshua Tauberer

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
parent f0143fd6
......@@ -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;
......
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