mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-27 10:07:10 +00:00
22 lines
647 B
JavaScript
22 lines
647 B
JavaScript
"use strict";
|
|
define(['app','backgrid'], function () {
|
|
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.modalRegion.show(view);
|
|
},
|
|
|
|
removeSeries: function () {
|
|
var view = new NzbDrone.Series.Delete.DeleteSeriesView({ model: this.model });
|
|
NzbDrone.modalRegion.show(view);
|
|
}
|
|
});
|
|
|
|
return NzbDrone.Series.Table.Row;
|
|
});
|
|
|