2013-06-28 16:06:16 -07:00
|
|
|
'use strict';
|
2013-06-20 22:19:41 -07:00
|
|
|
define(
|
|
|
|
[
|
2013-10-08 18:43:41 -07:00
|
|
|
'Shared/NzbDroneController',
|
|
|
|
'AppLayout',
|
2013-06-24 16:41:59 -07:00
|
|
|
'marionette',
|
|
|
|
'History/HistoryLayout',
|
2013-06-20 22:19:41 -07:00
|
|
|
'Settings/SettingsLayout',
|
|
|
|
'AddSeries/AddSeriesLayout',
|
2014-02-09 20:03:49 +01:00
|
|
|
'Wanted/WantedLayout',
|
2013-06-24 16:41:59 -07:00
|
|
|
'Calendar/CalendarLayout',
|
2013-11-11 18:00:20 -08:00
|
|
|
'Release/ReleaseLayout',
|
2013-09-30 22:30:02 -07:00
|
|
|
'System/SystemLayout',
|
2013-09-23 17:53:56 -07:00
|
|
|
'SeasonPass/SeasonPassLayout',
|
2013-12-08 21:25:27 -08:00
|
|
|
'System/Update/UpdateLayout',
|
|
|
|
'Series/Editor/SeriesEditorLayout'
|
2013-10-08 18:43:41 -07:00
|
|
|
], function (NzbDroneController,
|
|
|
|
AppLayout,
|
2013-09-30 22:30:02 -07:00
|
|
|
Marionette,
|
|
|
|
HistoryLayout,
|
|
|
|
SettingsLayout,
|
|
|
|
AddSeriesLayout,
|
2014-02-09 20:03:49 +01:00
|
|
|
WantedLayout,
|
2013-09-30 22:30:02 -07:00
|
|
|
CalendarLayout,
|
|
|
|
ReleaseLayout,
|
|
|
|
SystemLayout,
|
|
|
|
SeasonPassLayout,
|
2013-12-08 21:25:27 -08:00
|
|
|
UpdateLayout,
|
|
|
|
SeriesEditorLayout) {
|
2013-10-08 18:43:41 -07:00
|
|
|
return NzbDroneController.extend({
|
2013-08-01 17:24:00 -07:00
|
|
|
|
2013-04-18 16:14:08 -07:00
|
|
|
addSeries: function (action) {
|
2013-10-08 18:43:41 -07:00
|
|
|
this.setTitle('Add Series');
|
2013-11-13 19:38:30 -08:00
|
|
|
this.showMainRegion(new AddSeriesLayout({action: action}));
|
2013-04-18 16:14:08 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
calendar: function () {
|
2013-10-08 18:43:41 -07:00
|
|
|
this.setTitle('Calendar');
|
2013-11-13 19:38:30 -08:00
|
|
|
this.showMainRegion(new CalendarLayout());
|
2013-04-18 16:14:08 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
settings: function (action) {
|
2013-10-08 18:43:41 -07:00
|
|
|
this.setTitle('Settings');
|
2013-11-13 19:38:30 -08:00
|
|
|
this.showMainRegion(new SettingsLayout({ action: action }));
|
2013-03-29 16:28:58 -07:00
|
|
|
},
|
|
|
|
|
2014-02-09 20:03:49 +01:00
|
|
|
wanted: function (action) {
|
|
|
|
this.setTitle('Wanted');
|
2013-03-29 16:28:58 -07:00
|
|
|
|
2014-02-09 20:03:49 +01:00
|
|
|
this.showMainRegion(new WantedLayout({ action: action }));
|
2013-03-29 16:28:58 -07:00
|
|
|
},
|
|
|
|
|
2013-10-01 22:20:30 -07:00
|
|
|
history: function (action) {
|
2013-10-08 18:43:41 -07:00
|
|
|
this.setTitle('History');
|
2013-05-02 23:53:32 -07:00
|
|
|
|
2013-11-13 19:38:30 -08:00
|
|
|
this.showMainRegion(new HistoryLayout({ action: action }));
|
2013-05-02 23:53:32 -07:00
|
|
|
},
|
|
|
|
|
2013-06-04 22:08:10 -07:00
|
|
|
rss: function () {
|
2013-10-08 18:43:41 -07:00
|
|
|
this.setTitle('RSS');
|
2013-11-13 19:38:30 -08:00
|
|
|
this.showMainRegion(new ReleaseLayout());
|
2013-06-04 22:08:10 -07:00
|
|
|
},
|
|
|
|
|
2013-09-30 22:30:02 -07:00
|
|
|
system: function (action) {
|
2013-10-08 18:43:41 -07:00
|
|
|
this.setTitle('System');
|
2013-11-13 19:38:30 -08:00
|
|
|
this.showMainRegion(new SystemLayout({ action: action }));
|
2013-07-28 13:20:26 -07:00
|
|
|
},
|
|
|
|
|
2013-08-05 02:09:41 -07:00
|
|
|
seasonPass: function () {
|
2013-10-08 18:43:41 -07:00
|
|
|
this.setTitle('Season Pass');
|
2013-11-13 19:38:30 -08:00
|
|
|
this.showMainRegion(new SeasonPassLayout());
|
2013-08-05 02:09:41 -07:00
|
|
|
},
|
|
|
|
|
2013-09-28 11:48:30 -07:00
|
|
|
update: function () {
|
2013-10-08 18:43:41 -07:00
|
|
|
this.setTitle('Updates');
|
2013-11-13 19:38:30 -08:00
|
|
|
this.showMainRegion(new UpdateLayout());
|
2013-12-08 21:25:27 -08:00
|
|
|
},
|
|
|
|
|
|
|
|
seriesEditor: function () {
|
|
|
|
this.setTitle('Series Editor');
|
|
|
|
this.showMainRegion(new SeriesEditorLayout());
|
2013-03-29 16:28:58 -07:00
|
|
|
}
|
2013-12-08 21:25:27 -08:00
|
|
|
|
2013-03-29 16:28:58 -07:00
|
|
|
});
|
2013-02-15 16:49:25 -08:00
|
|
|
});
|
2013-02-15 15:38:53 -08:00
|
|
|
|