mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-22 02:17:26 +00:00
admin: rename my ajax javascript function to ajax_with_indicator; see 79c57c2303
This commit is contained in:
parent
2e99589336
commit
75a75a6f84
@ -267,7 +267,7 @@ function show_modal_confirm(title, question, verb, yes_callback, cancel_callback
|
|||||||
}
|
}
|
||||||
|
|
||||||
var ajax_num_executing_requests = 0;
|
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);
|
setTimeout("if (ajax_num_executing_requests > 0) $('#ajax_loading_indicator').fadeIn()", 100);
|
||||||
function hide_loading_indicator() {
|
function hide_loading_indicator() {
|
||||||
ajax_num_executing_requests--;
|
ajax_num_executing_requests--;
|
||||||
@ -329,7 +329,7 @@ function api(url, method, data, callback, callback_error) {
|
|||||||
show_modal_error("Error", "Something went wrong, sorry.")
|
show_modal_error("Error", "Something went wrong, sorry.")
|
||||||
}
|
}
|
||||||
|
|
||||||
ajax({
|
ajax_with_indicator({
|
||||||
url: "/admin" + url,
|
url: "/admin" + url,
|
||||||
method: method,
|
method: method,
|
||||||
cache: false,
|
cache: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user