mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-21 01:49:57 +02:00
23 lines
576 B
JavaScript
23 lines
576 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'app',
|
|
'backgrid'
|
|
], function (App, Backgrid) {
|
|
return Backgrid.Row.extend({
|
|
events: {
|
|
'click .x-edit' : 'editSeries',
|
|
'click .x-remove': 'removeSeries'
|
|
},
|
|
|
|
editSeries: function () {
|
|
App.vent.trigger(App.Commands.EditSeriesCommand, {series:this.model});
|
|
},
|
|
|
|
removeSeries: function () {
|
|
App.vent.trigger(App.Commands.DeleteSeriesCommand, {series:this.model});
|
|
},
|
|
});
|
|
});
|
|
|