mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
broken
This commit is contained in:
parent
0916c8b8d1
commit
24c77b4047
29 changed files with 610 additions and 517 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue