2013-06-22 09:24:24 +03:00
|
|
|
'use strict';
|
2013-06-15 02:18:37 +03: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 06:04:06 +03:00
|
|
|
|
2013-06-15 02:18:37 +03: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 06:04:06 +03:00
|
|
|
|