mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-23 02:05:27 +02:00
27 lines
579 B
JavaScript
27 lines
579 B
JavaScript
NzbDrone = {};
|
|
|
|
NzbDrone.Views = {};
|
|
NzbDrone.Models = {};
|
|
NzbDrone.Collections = {};
|
|
|
|
NzbDrone.App = new Backbone.Marionette.Application();
|
|
|
|
// Setup default application views
|
|
NzbDrone.App.addInitializer(function () {
|
|
|
|
NzbDrone.App.addRegions({
|
|
main: '#main-region'
|
|
});
|
|
|
|
var layout = new NzbDrone.Views.AppLayout();
|
|
|
|
NzbDrone.App.Layout = layout;
|
|
NzbDrone.App.main.show(layout);
|
|
|
|
layout.header.show(new NzbDrone.Views.HeaderView());
|
|
});
|
|
|
|
NzbDrone.App.addInitializer(function () {
|
|
new NzbDrone.AppRouter();
|
|
Backbone.history.start();
|
|
}); |