couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject git commit: updated refs/heads/fauxton-pagination to 4a2ffc9
Date Tue, 07 Jan 2014 15:23:37 GMT
Updated Branches:
  refs/heads/fauxton-pagination b958c9542 -> 4a2ffc930


strinigy keys


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/4a2ffc93
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/4a2ffc93
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/4a2ffc93

Branch: refs/heads/fauxton-pagination
Commit: 4a2ffc930d722dc0ef574a94dde806c9dbae2fd0
Parents: b958c95
Author: Garren Smith <garren.smith@gmail.com>
Authored: Tue Jan 7 17:23:24 2014 +0200
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Tue Jan 7 17:23:24 2014 +0200

----------------------------------------------------------------------
 src/fauxton/app/modules/documents/resources.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/4a2ffc93/src/fauxton/app/modules/documents/resources.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/modules/documents/resources.js b/src/fauxton/app/modules/documents/resources.js
index 4258c2a..f102b58 100644
--- a/src/fauxton/app/modules/documents/resources.js
+++ b/src/fauxton/app/modules/documents/resources.js
@@ -436,9 +436,8 @@ function(app, FauxtonAPI) {
       }
 
       this.params.startkey_docid = '"' + lastDoc.get("id") + '"';
-      this.params.startkey = '"' + lastDoc.get('key') + '"';
-      this.params.limit = num;
-      console.log('url next params', this.params, lastDoc);
+      this.params.startkey =  JSON.stringify(lastDoc.get('key'));
+      this.params.limit = num + 1;
       return this.url('app');
     },
 


Mime
View raw message