diff options
author | Christopher Lenz <cmlenz@apache.org> | 2009-12-10 16:03:43 +0000 |
---|---|---|
committer | Christopher Lenz <cmlenz@apache.org> | 2009-12-10 16:03:43 +0000 |
commit | 72de6c7633e56207b8ee4bf10f155ed06fc39ef4 (patch) | |
tree | 62f8332e97af3eac08fefe76d6fe27b23adcfd52 /share | |
parent | 5ad12f26e8288a0bc4ae061b9c2f0465d1ada95d (diff) |
Futon: Fix toggling of reduce checkbox on database page.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@889307 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r-- | share/www/database.html | 2 | ||||
-rw-r--r-- | share/www/script/futon.browse.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/share/www/database.html b/share/www/database.html index 3609cc7b..c44d83fc 100644 --- a/share/www/database.html +++ b/share/www/database.html @@ -95,7 +95,7 @@ specific language governing permissions and limitations under the License. $(this).toggleClass("desc"); page.updateDocumentListing(); }); - $("#documents thead th.value #reduce :checkbox").click(function() { + $("#reduce :checkbox").click(function() { page.updateDocumentListing(); if (this.checked) { $.cookies.set(page.db.name + ".doreduce", "1"); diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js index 0c85a909..76084d64 100644 --- a/share/www/script/futon.browse.js +++ b/share/www/script/futon.browse.js @@ -350,7 +350,7 @@ mapFun.split("\n").length, reduceFun.split("\n").length ); - $("#reduce").toggle(reduceFun != null); + $("#reduce").toggle(!!reduceFun); $("#viewcode textarea").attr("rows", Math.min(15, Math.max(3, lines))); } |