mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
making modals event driven,
This commit is contained in:
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();
|
||||
|
Reference in New Issue
Block a user