mirror of https://github.com/Radarr/Radarr
Fix Delete modal when adding movie
This commit is contained in:
parent
942d97931e
commit
3ab0b17379
|
@ -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 });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue