This commit is contained in:
Keivan Beigi 2013-06-20 18:43:58 -07:00
parent 0916c8b8d1
commit 24c77b4047
29 changed files with 610 additions and 517 deletions

View file

@ -1,12 +1,15 @@
"use strict";
define(['app'], function () {
define(function () {
//This module will automatically route all links through backbone router rather than
//causing links to reload pages.
var routeBinder = {
bind: function () {
bind: function (router) {
this._router = router;
$(document).on('click', 'a[href]', this._handleClick);
},
@ -44,7 +47,7 @@ define(['app'], function () {
if (!href.startsWith('http')) {
NzbDrone.Router.navigate(href, { trigger: true });
this._router.navigate(href, { trigger: true });
}
else {