mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-30 19:56:54 +00:00
769331d45d
single quotes
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;
|
|
});
|
|
|