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/1809-compact-and-clean Commit: cee22107146b68d14d233bb1b760777bce3ebb55 Parents: 12af14b Author: Garren Smith <[email protected]> Authored: Tue Oct 22 14:21:21 2013 +0200 Committer: Garren Smith <[email protected]> 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) {
