From f51ffa07b3faf0c1e1984b2853e4c8af36ae3289 Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Fri, 11 Dec 2009 22:39:29 +0000 Subject: Futon: A couple of bug fixes: * Enable tab insertion in text areas for temp views. * Properly sync disabled status of "grouping" control on page load. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@889841 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/futon.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'share/www/script/futon.js') diff --git a/share/www/script/futon.js b/share/www/script/futon.js index f5a81444..1f51bdee 100644 --- a/share/www/script/futon.js +++ b/share/www/script/futon.js @@ -168,7 +168,11 @@ this.set = function(name, value) { lookup(name, function(decl) { - handlers[decl.scope].set(decl.prefix + name, value); + if (value == decl.defaultValue) { + handlers[decl.scope].del(decl.prefix + name); + } else { + handlers[decl.scope].set(decl.prefix + name, value); + } }); } -- cgit v1.2.3