From 75a75a6f84279ae1e763c5a1814a0827e6d174ee Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Fri, 4 Sep 2015 18:40:56 -0400 Subject: [PATCH] admin: rename my ajax javascript function to ajax_with_indicator; see https://github.com/JoshData/html5-stub/commit/79c57c23031a1430536e1daa8f0a9f3abd07a633 --- management/templates/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,