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

@ -24,13 +24,6 @@ define(['app'], function () {
} else {
this.setActive(event.target);
}
if (href && href.startsWith('http')) {
window.location.href = href;
} else {
NzbDrone.Router.navigate(href, { trigger: true });
}
},
setActive: function (element) {