Fix Delete modal when adding movie

pull/2/head
Tim Turner 8 years ago
parent 942d97931e
commit 3ab0b17379

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

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

Loading…
Cancel
Save