|
|
@ -13,16 +13,18 @@ define(
|
|
|
|
'Calendar/CalendarLayout',
|
|
|
|
'Calendar/CalendarLayout',
|
|
|
|
'Logs/Layout',
|
|
|
|
'Logs/Layout',
|
|
|
|
'Release/Layout',
|
|
|
|
'Release/Layout',
|
|
|
|
|
|
|
|
'System/Layout',
|
|
|
|
'Shared/NotFoundView',
|
|
|
|
'Shared/NotFoundView',
|
|
|
|
'Shared/Modal/Region'
|
|
|
|
'Shared/Modal/Region'
|
|
|
|
], function (App, Marionette, HistoryLayout, SettingsLayout, AddSeriesLayout, SeriesIndexLayout, SeriesDetailsLayout, MissingLayout, SeriesModel, CalendarLayout,
|
|
|
|
], function (App, Marionette, HistoryLayout, SettingsLayout, AddSeriesLayout, SeriesIndexLayout, SeriesDetailsLayout, MissingLayout, SeriesModel, CalendarLayout,
|
|
|
|
LogsLayout, ReleaseLayout, NotFoundView) {
|
|
|
|
LogsLayout, ReleaseLayout, SystemLayout, NotFoundView) {
|
|
|
|
return Marionette.Controller.extend({
|
|
|
|
return Marionette.Controller.extend({
|
|
|
|
|
|
|
|
|
|
|
|
series : function () {
|
|
|
|
series : function () {
|
|
|
|
this._setTitle('NzbDrone');
|
|
|
|
this._setTitle('NzbDrone');
|
|
|
|
App.mainRegion.show(new SeriesIndexLayout());
|
|
|
|
App.mainRegion.show(new SeriesIndexLayout());
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
seriesDetails: function (query) {
|
|
|
|
seriesDetails: function (query) {
|
|
|
|
|
|
|
|
|
|
|
|
var self = this;
|
|
|
|
var self = this;
|
|
|
@ -74,12 +76,16 @@ define(
|
|
|
|
App.mainRegion.show(new LogsLayout());
|
|
|
|
App.mainRegion.show(new LogsLayout());
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
system: function () {
|
|
|
|
|
|
|
|
this._setTitle('system');
|
|
|
|
|
|
|
|
App.mainRegion.show(new SystemLayout());
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
notFound: function () {
|
|
|
|
notFound: function () {
|
|
|
|
this._setTitle('Not Found');
|
|
|
|
this._setTitle('Not Found');
|
|
|
|
App.mainRegion.show(new NotFoundView(this));
|
|
|
|
App.mainRegion.show(new NotFoundView(this));
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_setTitle: function (title) {
|
|
|
|
_setTitle: function (title) {
|
|
|
|
//$('#title-region').html(title);
|
|
|
|
//$('#title-region').html(title);
|
|
|
|
|
|
|
|
|
|
|
|