2013-05-15 04:17:24 +03:00
|
|
|
"use strict";
|
2013-05-01 06:04:06 +03:00
|
|
|
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});
|
2013-05-15 04:17:24 +03:00
|
|
|
NzbDrone.modalRegion.show(view);
|
2013-05-01 06:04:06 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
removeSeries: function () {
|
|
|
|
var view = new NzbDrone.Series.Delete.DeleteSeriesView({ model: this.model });
|
2013-05-15 04:17:24 +03:00
|
|
|
NzbDrone.modalRegion.show(view);
|
2013-05-01 06:04:06 +03:00
|
|
|
}
|
|
|
|
});
|