mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Moved source code under src folder - massive change
This commit is contained in:
28
src/UI/Series/Index/List/ItemView.js
Normal file
28
src/UI/Series/Index/List/ItemView.js
Normal file
@@ -0,0 +1,28 @@
|
||||
'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});
|
||||
}
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user