Fixed issues with edit/delete series modal.

This commit is contained in:
kay.one 2013-07-23 21:16:52 -07:00
commit 437a28c10d
8 changed files with 29 additions and 50 deletions

View file

@ -7,7 +7,7 @@ define(
'moment',
'Calendar/Collection',
'fullcalendar'
], function (App, Marionette, Moment, CalendarCollection, EpisodeLayout) {
], function (App, Marionette, Moment, CalendarCollection) {
var _instance;
@ -37,8 +37,7 @@ define(
$(element).children('.fc-event-inner').addClass(event.statusLevel);
},
eventClick : function (event) {
var view = new EpisodeLayout({ model: event.model });
App.modalRegion.show(view);
App.vent.trigger(App.Commands.ShowEpisodeDetails, {episode: event.model});
}
});