mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 01:23:53 -07:00
removed NzbDrone. namespace, everything is done using require.
This commit is contained in:
parent
ef62af75df
commit
b0bd3f34f1
121 changed files with 2570 additions and 2587 deletions
15
UI/Router.js
15
UI/Router.js
|
@ -1,4 +1,4 @@
|
|||
'use strict';
|
||||
'use strict';
|
||||
require(
|
||||
[
|
||||
'app',
|
||||
|
@ -7,9 +7,9 @@ require(
|
|||
'jQuery/RouteBinder'
|
||||
], function (App, Marionette, Controller, RouterBinder) {
|
||||
|
||||
NzbDrone.Router = Marionette.AppRouter.extend({
|
||||
var Router = Marionette.AppRouter.extend({
|
||||
|
||||
controller: Controller,
|
||||
controller: new Controller(),
|
||||
appRoutes : {
|
||||
'' : 'series',
|
||||
'series' : 'series',
|
||||
|
@ -28,17 +28,16 @@ require(
|
|||
}
|
||||
});
|
||||
|
||||
NzbDrone.addInitializer(function () {
|
||||
App.addInitializer(function () {
|
||||
|
||||
NzbDrone.Router = new NzbDrone.Router();
|
||||
App.Router = new Router();
|
||||
Backbone.history.start({ pushState: true });
|
||||
|
||||
RouterBinder.bind(NzbDrone.Router);
|
||||
// NzbDrone.footerRegion.show(new FooterView());
|
||||
RouterBinder.bind(App.Router);
|
||||
});
|
||||
|
||||
|
||||
return NzbDrone.Router;
|
||||
return App.Router;
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue