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 ccf2d0e
Date Tue, 07 Jan 2014 15:35:57 GMT
Updated Branches:
  refs/heads/fauxton-pagination 4a2ffc930 -> ccf2d0eb4


Stringify id


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

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

----------------------------------------------------------------------
 src/fauxton/app/modules/documents/resources.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/ccf2d0eb/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 f102b58..f513281 100644
--- a/src/fauxton/app/modules/documents/resources.js
+++ b/src/fauxton/app/modules/documents/resources.js
@@ -435,7 +435,7 @@ function(app, FauxtonAPI) {
         lastDoc = this.last();
       }
 
-      this.params.startkey_docid = '"' + lastDoc.get("id") + '"';
+      this.params.startkey_docid = JSON.stringify(lastDoc.get("id"));
       this.params.startkey =  JSON.stringify(lastDoc.get('key'));
       this.params.limit = num + 1;
       return this.url('app');


Mime
View raw message