mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 16:43:58 -07:00
making modals event driven,
This commit is contained in:
parent
2083a86c2a
commit
00dcce469d
18 changed files with 100 additions and 53 deletions
12
UI/app.js
12
UI/app.js
|
@ -170,12 +170,16 @@ define(
|
|||
var app = new Marionette.Application();
|
||||
|
||||
app.Events = {
|
||||
SeriesAdded: 'series:added',
|
||||
SeriesAdded : 'series:added',
|
||||
SeriesDeleted: 'series:deleted'
|
||||
};
|
||||
|
||||
app.Commands = {
|
||||
SaveSettings: 'saveSettings'
|
||||
EditSeriesCommand : 'EditSeriesCommand',
|
||||
DeleteSeriesCommand: 'DeleteSeriesCommand',
|
||||
CloseModalCommand : 'CloseModalCommand',
|
||||
ShowEpisodeDetails : 'ShowEpisodeDetails',
|
||||
SaveSettings : 'saveSettings'
|
||||
};
|
||||
|
||||
app.addInitializer(function () {
|
||||
|
@ -183,8 +187,8 @@ define(
|
|||
});
|
||||
|
||||
app.addRegions({
|
||||
mainRegion : '#main-region',
|
||||
footerRegion : '#footer-region'
|
||||
mainRegion : '#main-region',
|
||||
footerRegion: '#footer-region'
|
||||
});
|
||||
|
||||
app.start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue