You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2014/10/30 16:37:39 UTC
fauxton commit: updated refs/heads/master to c444e1f
Repository: couchdb-fauxton
Updated Branches:
refs/heads/master e13f36dac -> c444e1fd6
Cleanup: use constant for page size
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/c444e1fd
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/c444e1fd
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/c444e1fd
Branch: refs/heads/master
Commit: c444e1fd69e030536be247c6228748dc1a43bb05
Parents: e13f36d
Author: Robert Kowalski <ro...@apache.org>
Authored: Thu Oct 30 11:57:49 2014 +0100
Committer: Robert Kowalski <ro...@apache.org>
Committed: Thu Oct 30 16:33:54 2014 +0100
----------------------------------------------------------------------
app/addons/documents/routes-documents.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/c444e1fd/app/addons/documents/routes-documents.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/routes-documents.js b/app/addons/documents/routes-documents.js
index 80998e2..a7d377d 100644
--- a/app/addons/documents/routes-documents.js
+++ b/app/addons/documents/routes-documents.js
@@ -194,12 +194,13 @@ function(app, FauxtonAPI, Documents, Changes, Index, DocEditor, Databases, Resou
},
createParams: function (options) {
- var urlParams = app.getParams(options);
- var params = Documents.QueryParams.parse(urlParams);
+ var urlParams = app.getParams(options),
+ params = Documents.QueryParams.parse(urlParams),
+ limit = this.getDocPerPageLimit(params, FauxtonAPI.constants.DEFAULT_PAGE_SIZE);
return {
urlParams: urlParams,
- docParams: _.extend(params, {limit: this.getDocPerPageLimit(params, 20)})
+ docParams: _.extend(params, {limit: limit})
};
},