all links are automatically handled through backbone router.

no more page reload.
This commit is contained in:
kay.one 2013-06-05 22:13:31 -07:00
parent 5ea794939c
commit 50918ae65f
6 changed files with 55 additions and 41 deletions

View file

@ -1,5 +1,5 @@
"use strict";
require(['app', 'Controller'], function (app, controller) {
require(['app', 'Controller', 'RouteBinder'], function (app, controller, routeBinder) {
NzbDrone.Router = Backbone.Marionette.AppRouter.extend({
@ -27,6 +27,7 @@ require(['app', 'Controller'], function (app, controller) {
NzbDrone.Router = new NzbDrone.Router();
Backbone.history.start({ pushState: true });
routeBinder.bind();
});
});