2013-06-22 06:24:24 +00:00
|
|
|
'use strict';
|
2013-06-14 23:18:37 +00:00
|
|
|
define(['app','backgrid'], function () {
|
|
|
|
NzbDrone.Series.Index.Table.Row = Backgrid.Row.extend({
|
|
|
|
events: {
|
|
|
|
'click .x-edit' : 'editSeries',
|
|
|
|
'click .x-remove': 'removeSeries'
|
|
|
|
},
|
2013-05-01 03:04:06 +00:00
|
|
|
|
2013-06-14 23:18:37 +00:00
|
|
|
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;
|
|
|
|
});
|
2013-05-01 03:04:06 +00:00
|
|
|
|