mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 08:07:10 -07:00
moved add series to require.
This commit is contained in:
parent
24c77b4047
commit
72772bed5a
16 changed files with 181 additions and 185 deletions
21
UI/Router.js
21
UI/Router.js
|
@ -1,11 +1,13 @@
|
|||
"use strict";
|
||||
require(
|
||||
[
|
||||
'app',
|
||||
'marionette',
|
||||
'Controller'
|
||||
], function (Marionette, Controller) {
|
||||
'Controller',
|
||||
'RouteBinder'
|
||||
], function (App, Marionette, Controller, RouterBinder) {
|
||||
|
||||
return Marionette.AppRouter.extend({
|
||||
NzbDrone.Router = Marionette.AppRouter.extend({
|
||||
|
||||
controller: Controller,
|
||||
appRoutes : {
|
||||
|
@ -25,5 +27,18 @@ require(
|
|||
':whatever' : 'notFound'
|
||||
}
|
||||
});
|
||||
|
||||
NzbDrone.addInitializer(function () {
|
||||
|
||||
NzbDrone.Router = new NzbDrone.Router();
|
||||
Backbone.history.start({ pushState: true });
|
||||
|
||||
RouterBinder.bind(NzbDrone.Router);
|
||||
// NzbDrone.footerRegion.show(new FooterView());
|
||||
});
|
||||
|
||||
|
||||
return NzbDrone.Router;
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue