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/master to cee2210
Date Tue, 22 Oct 2013 12:21:45 GMT
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 <garren.smith@gmail.com>
Authored: Tue Oct 22 14:21:21 2013 +0200
Committer: Garren Smith <garren.smith@gmail.com>
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) {


Mime
View raw message