Fauxton: Prevent propogation on pagination
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/fe888d2f Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/fe888d2f Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/fe888d2f Branch: refs/heads/1960-paginate-all_dbs Commit: fe888d2f92d159ad891fdbf64f97b9588d7c4d81 Parents: 277b730 Author: Garren Smith <[email protected]> Authored: Tue Dec 17 14:59:43 2013 +0200 Committer: Garren Smith <[email protected]> Committed: Tue Dec 17 14:59:43 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/fe888d2f/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 5255626..6afe046 100644 --- a/src/fauxton/app/modules/fauxton/components.js +++ b/src/fauxton/app/modules/fauxton/components.js @@ -78,6 +78,7 @@ function(app, FauxtonAPI, ace) { previousClicked: function (event) { event.preventDefault(); + event.stopPropagation(); if (!this.canShowPreviousfn()) { return; } FauxtonAPI.navigate(this.previousUrlfn(), {trigger: false}); FauxtonAPI.triggerRouteEvent('paginate', 'previous'); @@ -85,6 +86,7 @@ function(app, FauxtonAPI, ace) { nextClicked: function (event) { event.preventDefault(); + event.stopPropagation(); if (!this.canShowNextfn()) { return; } var doc = this.collection.first();
