couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r889307 - in /couchdb/trunk/share/www: database.html script/futon.browse.js
Date Thu, 10 Dec 2009 16:03:44 GMT
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)));
       }
 



Mime
View raw message