Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 61561107B0 for ; Thu, 27 Nov 2014 19:07:52 +0000 (UTC) Received: (qmail 60451 invoked by uid 500); 27 Nov 2014 19:07:52 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 60408 invoked by uid 500); 27 Nov 2014 19:07:52 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 60397 invoked by uid 99); 27 Nov 2014 19:07:51 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Nov 2014 19:07:51 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 6372694A1D6; Thu, 27 Nov 2014 19:07:51 +0000 (UTC) From: benkeen To: dev@couchdb.apache.org Reply-To: dev@couchdb.apache.org References: In-Reply-To: Subject: [GitHub] couchdb-fauxton pull request: Componentize footer Content-Type: text/plain Message-Id: <20141127190751.6372694A1D6@tyr.zones.apache.org> Date: Thu, 27 Nov 2014 19:07:51 +0000 (UTC) Github user benkeen commented on a diff in the pull request: https://github.com/apache/couchdb-fauxton/pull/173#discussion_r21008556 --- Diff: app/addons/documents/routes-documents.js --- @@ -259,11 +267,35 @@ function(app, FauxtonAPI, Documents, Changes, Index, DocEditor, Databases, Resou this.viewEditor && this.viewEditor.remove(); this.database.allDocs.paging.pageSize = this.getDocPerPageLimit(urlParams, parseInt(docParams.limit, 10)); + if (!docParams) { + docParams = {}; + } + this.perPageDefault = docParams.limit || 20; --- End diff -- Possibly a constant here? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---