making modals event driven,

This commit is contained in:
Keivan Beigi 2013-07-23 18:15:58 -07:00 committed by kay.one
parent 2083a86c2a
commit 00dcce469d
18 changed files with 100 additions and 53 deletions

View file

@ -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();