You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by jc...@apache.org on 2009/01/09 20:34:01 UTC

svn commit: r733128 - /couchdb/trunk/share/www/script/browse.js

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();