Commit 75a75a6f authored by Joshua Tauberer's avatar Joshua Tauberer

admin: rename my ajax javascript function to ajax_with_indicator; see...

admin: rename my ajax javascript function to ajax_with_indicator; see https://github.com/JoshData/html5-stub/commit/79c57c23031a1430536e1daa8f0a9f3abd07a633
parent 2e995893
......@@ -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,
......
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