Fix Delete modal when adding movie

This commit is contained in:
Tim Turner 2017-01-31 10:32:12 -05:00
parent 942d97931e
commit 3ab0b17379
2 changed files with 4 additions and 3 deletions

View File

@ -17,7 +17,7 @@ var view = Marionette.ItemView.extend({
}, },
events : { events : {
'click .x-remove' : '_removeSeries' 'click .x-remove' : '_removeMovie'
}, },
initialize : function() { initialize : function() {
@ -42,7 +42,7 @@ var view = Marionette.ItemView.extend({
vent.trigger(vent.Commands.CloseModalCommand); vent.trigger(vent.Commands.CloseModalCommand);
}, },
_removeSeries : function() { _removeMovie : function() {
vent.trigger(vent.Commands.DeleteMovieCommand, { movie : this.model }); vent.trigger(vent.Commands.DeleteMovieCommand, { movie : this.model });
} }
}); });

View File

@ -13,8 +13,9 @@ vent.Events = {
vent.Commands = { vent.Commands = {
EditSeriesCommand : 'EditSeriesCommand', EditSeriesCommand : 'EditSeriesCommand',
EditMovieCommand : 'EditMovieCommand', EditMovieCommand : 'EditMovieCommand',
EditFileCommand : "EditFileCommand", EditFileCommand : "EditFileCommand",
DeleteSeriesCommand : 'DeleteSeriesCommand', DeleteSeriesCommand : 'DeleteSeriesCommand',
DeleteMovieCommand : 'DeleteMovieCommand',
OpenModalCommand : 'OpenModalCommand', OpenModalCommand : 'OpenModalCommand',
CloseModalCommand : 'CloseModalCommand', CloseModalCommand : 'CloseModalCommand',
OpenModal2Command : 'OpenModal2Command', OpenModal2Command : 'OpenModal2Command',