mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-10 04:52:42 +01:00
29 lines
731 B
JavaScript
29 lines
731 B
JavaScript
'use strict';
|
|
|
|
define(
|
|
[
|
|
'app',
|
|
'marionette',
|
|
], function (App, Marionette) {
|
|
return Marionette.ItemView.extend({
|
|
template: 'Series/Index/List/ItemTemplate',
|
|
|
|
ui: {
|
|
'progressbar': '.progress .bar'
|
|
},
|
|
|
|
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});
|
|
}
|
|
});
|
|
});
|