diff options
author | Garren Smith <garren.smith@gmail.com> | 2013-10-22 14:21:21 +0200 |
---|---|---|
committer | Garren Smith <garren.smith@gmail.com> | 2013-10-22 14:21:21 +0200 |
commit | cee22107146b68d14d233bb1b760777bce3ebb55 (patch) | |
tree | 56fbc60e4377725e5ae4af8111557482a29f430c | |
parent | 12af14b8f54997bdcc89419f61a9880632d0535a (diff) | |
download | couchdb-cee22107146b68d14d233bb1b760777bce3ebb55.tar.gz |
Fauxton disable pagination links
-rw-r--r-- | src/fauxton/app/modules/fauxton/components.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fauxton/app/modules/fauxton/components.js b/src/fauxton/app/modules/fauxton/components.js index 03fea872c..30a57d801 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) { |