mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-28 02:27:13 +00:00
21 lines
610 B
JavaScript
21 lines
610 B
JavaScript
|
NzbDrone.Series.Index.Table.Row = Backgrid.Row.extend({
|
||
|
events: {
|
||
|
'click .x-edit' : 'editSeries',
|
||
|
'click .x-remove': 'removeSeries'
|
||
|
},
|
||
|
|
||
|
editSeries: function () {
|
||
|
var view = new NzbDrone.Series.Edit.EditSeriesView({ model: this.model});
|
||
|
|
||
|
NzbDrone.vent.trigger(NzbDrone.Events.OpenModalDialog, {
|
||
|
view: view
|
||
|
});
|
||
|
},
|
||
|
|
||
|
removeSeries: function () {
|
||
|
var view = new NzbDrone.Series.Delete.DeleteSeriesView({ model: this.model });
|
||
|
NzbDrone.vent.trigger(NzbDrone.Events.OpenModalDialog, {
|
||
|
view: view
|
||
|
});
|
||
|
}
|
||
|
});
|