Commit 35462696 authored by alexandre's avatar alexandre

Do not interfere with paginor's own preventdefault

parent aecef45d
......@@ -17,11 +17,14 @@ window.W = window.W || {};
var router = new W.ScoreRouter({application: this});
$(document).on("click", "a", function(e) {
e.preventDefault(); // This is important
// Do not interfere with Backbone Paginator.
if (! e.isDefaultPrevented()) {
e.preventDefault(); // This is important
var href = $(e.currentTarget).attr('href');
var href = $(e.currentTarget).attr('href');
router.navigate(href, true);
router.navigate(href, true);
};
});
/** Starts the URL handling framework */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment