diff options
author | Christopher Lenz <cmlenz@apache.org> | 2009-12-11 22:39:29 +0000 |
---|---|---|
committer | Christopher Lenz <cmlenz@apache.org> | 2009-12-11 22:39:29 +0000 |
commit | f51ffa07b3faf0c1e1984b2853e4c8af36ae3289 (patch) | |
tree | 44cab2fb667839abe7643f56d34fc3c705cd6651 /share/www/script/futon.js | |
parent | fc27e23f3cc57159b1ee91747591cb0496385489 (diff) |
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
Diffstat (limited to 'share/www/script/futon.js')
-rw-r--r-- | share/www/script/futon.js | 6 |
1 files changed, 5 insertions, 1 deletions
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); + } }); } |