couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r733128 - /couchdb/trunk/share/www/script/browse.js
Date Fri, 09 Jan 2009 19:34:01 GMT
Author: jchris
Date: Fri Jan  9 11:34:01 2009
New Revision: 733128

URL: http://svn.apache.org/viewvc?rev=733128&view=rev
Log:
fixed design doc listing in Futon for new all docs collation

Modified:
    couchdb/trunk/share/www/script/browse.js

Modified: couchdb/trunk/share/www/script/browse.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/browse.js?rev=733128&r1=733127&r2=733128&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/browse.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/browse.js [utf-8] Fri Jan  9 11:34:01 2009
@@ -205,7 +205,7 @@
 
   this.populateViewsMenu = function() {
     var select = $("#switch select");
-    db.allDocs({startkey: "_design/", endkey: "_design/ZZZ",
+    db.allDocs({startkey: "_design/", endkey: "_design0",
       success: function(resp) {
         select[0].options.length = 3;
         for (var i = 0; i < resp.rows.length; i++) {
@@ -519,8 +519,8 @@
         }
         db.query(mapFun, reduceFun, null, options);
       } else if (viewName == "_design_docs") {
-        options.startkey = options.descending ? "_design/ZZZZ" : "_design/";
-        options.endkey = options.descending ? "_design/" : "_design/ZZZZ";
+        options.startkey = options.descending ? "_design0" : "_design";
+        options.endkey = options.descending ? "_design" : "_design0";
         db.allDocs(options);
       } else {
         $("#viewcode").show();



Mime
View raw message