Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0768B10F52 for ; Tue, 22 Oct 2013 12:22:09 +0000 (UTC) Received: (qmail 566 invoked by uid 500); 22 Oct 2013 12:22:05 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 99676 invoked by uid 500); 22 Oct 2013 12:21:46 -0000 Mailing-List: contact commits-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 commits@couchdb.apache.org Received: (qmail 99669 invoked by uid 99); 22 Oct 2013 12:21:45 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Oct 2013 12:21:45 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 784CE50647; Tue, 22 Oct 2013 12:21:45 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: garren@apache.org To: commits@couchdb.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: git commit: updated refs/heads/master to cee2210 Date: Tue, 22 Oct 2013 12:21:45 +0000 (UTC) Updated Branches: refs/heads/master 12af14b8f -> cee221071 Fauxton disable pagination links Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/cee22107 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/cee22107 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/cee22107 Branch: refs/heads/master Commit: cee22107146b68d14d233bb1b760777bce3ebb55 Parents: 12af14b Author: Garren Smith Authored: Tue Oct 22 14:21:21 2013 +0200 Committer: Garren Smith Committed: Tue Oct 22 14:21:21 2013 +0200 ---------------------------------------------------------------------- src/fauxton/app/modules/fauxton/components.js | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/cee22107/src/fauxton/app/modules/fauxton/components.js ---------------------------------------------------------------------- diff --git a/src/fauxton/app/modules/fauxton/components.js b/src/fauxton/app/modules/fauxton/components.js index 03fea87..30a57d8 100644 --- a/src/fauxton/app/modules/fauxton/components.js +++ b/src/fauxton/app/modules/fauxton/components.js @@ -67,12 +67,14 @@ function(app, FauxtonAPI) { previousClicked: function (event) { event.preventDefault(); + if (!this.canShowPreviousfn()) { return; } FauxtonAPI.navigate(this.previousUrlfn(), {trigger: false}); FauxtonAPI.triggerRouteEvent('paginate', 'previous'); }, nextClicked: function (event) { event.preventDefault(); + if (!this.canShowNextfn()) { return; } var doc = this.collection.first(); if (doc) {