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

admin: rename my ajax javascript function to ajax_with_indicator; see 79c57c2303

This commit is contained in:
Joshua Tauberer 2015-09-04 18:40:56 -04:00
parent 2e99589336
commit 75a75a6f84

View File

@ -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,