summaryrefslogtreecommitdiff
path: root/share/www/script/futon.js
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2009-01-14 22:09:30 +0000
committerChristopher Lenz <cmlenz@apache.org>2009-01-14 22:09:30 +0000
commita97511cbd6254206f58a1ef77ce78e53211ebd9e (patch)
treee1884f17712b744db4c477355c580646ecfbf4f1 /share/www/script/futon.js
parent892590e3a20c617b30ec8f89b0a895b753651e57 (diff)
Make the updating of the page-wide loading indicator in Futon both simpler and more robust by hooking into the jQuery global AJAX events support.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@734531 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/futon.js')
-rw-r--r--share/www/script/futon.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/www/script/futon.js b/share/www/script/futon.js
index 493637ec..074451d6 100644
--- a/share/www/script/futon.js
+++ b/share/www/script/futon.js
@@ -107,6 +107,10 @@
navigation: new Navigation()
});
+ $(document)
+ .ajaxStart(function() { $(this.body).addClass("loading"); })
+ .ajaxStop(function() { $(this.body).removeClass("loading"); });
+
$(function() {
document.title = "Apache CouchDB - Futon: " + document.title;
$.get("_sidebar.html", function(resp) {