You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by cm...@apache.org on 2009/12/10 17:03:44 UTC

svn commit: r889307 - in /couchdb/trunk/share/www: database.html script/futon.browse.js

Author: cmlenz
Date: Thu Dec 10 16:03:43 2009
New Revision: 889307

URL: http://svn.apache.org/viewvc?rev=889307&view=rev
Log:
Futon: Fix toggling of reduce checkbox on database page.

Modified:
    couchdb/trunk/share/www/database.html
    couchdb/trunk/share/www/script/futon.browse.js

Modified: couchdb/trunk/share/www/database.html
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/database.html?rev=889307&r1=889306&r2=889307&view=diff
==============================================================================
--- couchdb/trunk/share/www/database.html [utf-8] (original)
+++ couchdb/trunk/share/www/database.html [utf-8] Thu Dec 10 16:03:43 2009
@@ -95,7 +95,7 @@
           $(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");

Modified: couchdb/trunk/share/www/script/futon.browse.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/futon.browse.js?rev=889307&r1=889306&r2=889307&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/futon.browse.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/futon.browse.js [utf-8] Thu Dec 10 16:03:43 2009
@@ -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)));
       }