mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-12 08:07:10 -07:00
Cleaned up modals in the UI.
added empty modal for episode info
This commit is contained in:
parent
7cf7b5e051
commit
27fc51da48
16 changed files with 118 additions and 67 deletions
|
@ -1,16 +1,15 @@
|
|||
"use strict";
|
||||
define(['app', 'Shared/ModalRegion', 'AddSeries/AddSeriesLayout',
|
||||
define(['app', 'AddSeries/AddSeriesLayout',
|
||||
'Series/Index/SeriesIndexLayout',
|
||||
'Calendar/CalendarCollectionView', 'Shared/NotificationView',
|
||||
'Shared/NotFoundView', 'MainMenuView',
|
||||
'Series/Details/SeriesDetailsView', 'Series/EpisodeCollection',
|
||||
'Settings/SettingsLayout', 'Missing/MissingLayout',
|
||||
'History/HistoryLayout'],
|
||||
function (app, modalRegion) {
|
||||
|
||||
function () {
|
||||
var controller = Backbone.Marionette.Controller.extend({
|
||||
|
||||
series: function () {
|
||||
series : function () {
|
||||
this._setTitle('NzbDrone');
|
||||
NzbDrone.mainRegion.show(new NzbDrone.Series.Index.SeriesIndexLayout());
|
||||
},
|
||||
|
@ -74,23 +73,6 @@ define(['app', 'Shared/ModalRegion', 'AddSeries/AddSeriesLayout',
|
|||
}
|
||||
});
|
||||
|
||||
//Modal dialog initializer
|
||||
NzbDrone.addInitializer(function () {
|
||||
|
||||
NzbDrone.addRegions({ modalRegion: modalRegion });
|
||||
|
||||
NzbDrone.vent.on(NzbDrone.Events.OpenModalDialog, function (options) {
|
||||
console.log('opening modal dialog ' + options.view.template);
|
||||
NzbDrone.modalRegion.show(options.view);
|
||||
});
|
||||
|
||||
NzbDrone.vent.on(NzbDrone.Events.CloseModalDialog, function () {
|
||||
console.log('closing modal dialog');
|
||||
NzbDrone.modalRegion.close();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
return new controller();
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue