summaryrefslogtreecommitdiff
path: root/share/www/config.html
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/config.html
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/config.html')
-rw-r--r--share/www/config.html4
1 files changed, 0 insertions, 4 deletions
diff --git a/share/www/config.html b/share/www/config.html
index cc53ec3b..1341e063 100644
--- a/share/www/config.html
+++ b/share/www/config.html
@@ -26,7 +26,6 @@ specific language governing permissions and limitations under the License.
<script src="script/futon.js?0.9.0"></script>
<script>
$(function() {
- $(document.body).addClass("loading");
$.couch.config({
success: function(resp) {
var sections = [];
@@ -58,16 +57,13 @@ specific language governing permissions and limitations under the License.
row.find("th").attr("rowspan", options.length);
});
$("#config tbody tr").removeClass("odd").filter(":odd").addClass("odd");
- $(document.body).removeClass("loading");
$("#config tbody td.value code").makeEditable({
accept: function(newValue) {
- $(document.body).addClass("loading");
var row = $(this).parents("tr").eq(0);
$.couch.config({
success: function(resp) {
row.find("td.value code").text(newValue);
- $(document.body).removeClass("loading");
}}, row.data("section"), row.data("option"), newValue);
}
});