From f1760b516d3514187d6a003820f7f54e74820645 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Sun, 3 May 2015 12:24:26 +0000 Subject: [PATCH] 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 --- management/templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/templates/index.html b/management/templates/index.html index 805213c5..b6c5879b 100644 --- a/management/templates/index.html +++ b/management/templates/index.html @@ -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;