From 72de6c7633e56207b8ee4bf10f155ed06fc39ef4 Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Thu, 10 Dec 2009 16:03:43 +0000 Subject: 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 --- share/www/database.html | 2 +- share/www/script/futon.browse.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'share') 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))); } -- cgit v1.2.3