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