diff --git a/management/templates/index.html b/management/templates/index.html index 3714be82..c9e2f81e 100644 --- a/management/templates/index.html +++ b/management/templates/index.html @@ -267,7 +267,7 @@ function show_modal_confirm(title, question, verb, yes_callback, cancel_callback } var ajax_num_executing_requests = 0; -function ajax(options) { +function ajax_with_indicator(options) { setTimeout("if (ajax_num_executing_requests > 0) $('#ajax_loading_indicator').fadeIn()", 100); function hide_loading_indicator() { ajax_num_executing_requests--; @@ -329,7 +329,7 @@ function api(url, method, data, callback, callback_error) { show_modal_error("Error", "Something went wrong, sorry.") } - ajax({ + ajax_with_indicator({ url: "/admin" + url, method: method, cache: false,