Commit 7ac919ae by alexandre

Fix #17 (use router to switch between view)

parent 0f5d2647
......@@ -16,6 +16,13 @@ window.W = window.W || {};
var router = new W.ScoreRouter({application: this});
$(document).on("click", "a", function(e) {
e.preventDefault(); // This is important
var href = $(e.currentTarget).attr('href');
router.navigate(href, true);
});
/** Starts the URL handling framework */
Backbone.history.start({
......
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