|
|
@ -9,19 +9,22 @@ define(
|
|
|
|
'Episode/EpisodeDetailsLayout',
|
|
|
|
'Episode/EpisodeDetailsLayout',
|
|
|
|
'History/Details/HistoryDetailsView',
|
|
|
|
'History/Details/HistoryDetailsView',
|
|
|
|
'System/Logs/Table/Details/LogDetailsView',
|
|
|
|
'System/Logs/Table/Details/LogDetailsView',
|
|
|
|
'Settings/MediaManagement/Naming/Wizard/NamingWizardView'
|
|
|
|
], function (vent, AppLayout, Marionette, EditSeriesView, DeleteSeriesView, EpisodeDetailsLayout, HistoryDetailsView, LogDetailsView) {
|
|
|
|
], function (vent, AppLayout, Marionette, EditSeriesView, DeleteSeriesView, EpisodeDetailsLayout, HistoryDetailsView, LogDetailsView, NamingWizardView) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Marionette.AppRouter.extend({
|
|
|
|
return Marionette.AppRouter.extend({
|
|
|
|
|
|
|
|
|
|
|
|
initialize: function () {
|
|
|
|
initialize: function () {
|
|
|
|
|
|
|
|
vent.on(vent.Commands.OpenModalCommand, this._openModal, this);
|
|
|
|
vent.on(vent.Commands.CloseModalCommand, this._closeModal, this);
|
|
|
|
vent.on(vent.Commands.CloseModalCommand, this._closeModal, this);
|
|
|
|
vent.on(vent.Commands.EditSeriesCommand, this._editSeries, this);
|
|
|
|
vent.on(vent.Commands.EditSeriesCommand, this._editSeries, this);
|
|
|
|
vent.on(vent.Commands.DeleteSeriesCommand, this._deleteSeries, this);
|
|
|
|
vent.on(vent.Commands.DeleteSeriesCommand, this._deleteSeries, this);
|
|
|
|
vent.on(vent.Commands.ShowEpisodeDetails, this._showEpisode, this);
|
|
|
|
vent.on(vent.Commands.ShowEpisodeDetails, this._showEpisode, this);
|
|
|
|
vent.on(vent.Commands.ShowHistoryDetails, this._showHistory, this);
|
|
|
|
vent.on(vent.Commands.ShowHistoryDetails, this._showHistory, this);
|
|
|
|
vent.on(vent.Commands.ShowLogDetails, this._showLogDetails, this);
|
|
|
|
vent.on(vent.Commands.ShowLogDetails, this._showLogDetails, this);
|
|
|
|
vent.on(vent.Commands.ShowNamingWizard, this._showNamingWizard, this);
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_openModal: function (view) {
|
|
|
|
|
|
|
|
AppLayout.modalRegion.show(view);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
_closeModal: function () {
|
|
|
|
_closeModal: function () {
|
|
|
@ -51,11 +54,6 @@ define(
|
|
|
|
_showLogDetails: function (options) {
|
|
|
|
_showLogDetails: function (options) {
|
|
|
|
var view = new LogDetailsView({ model: options.model });
|
|
|
|
var view = new LogDetailsView({ model: options.model });
|
|
|
|
AppLayout.modalRegion.show(view);
|
|
|
|
AppLayout.modalRegion.show(view);
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_showNamingWizard: function (options) {
|
|
|
|
|
|
|
|
var view = new NamingWizardView({ model: options.model });
|
|
|
|
|
|
|
|
AppLayout.modalRegion.show(view);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|