mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-26 17:47:08 +00:00
769331d45d
single quotes
26 lines
614 B
JavaScript
26 lines
614 B
JavaScript
'use strict';
|
|
|
|
define(
|
|
[
|
|
'marionette'
|
|
], function (Marionette) {
|
|
|
|
return Marionette.ItemView.extend({
|
|
|
|
template: 'AddSeries/RootFolders/RootFolderItemTemplate',
|
|
tagName : 'tr',
|
|
|
|
events: {
|
|
'click .x-remove': 'removeFolder',
|
|
'click .x-folder': 'folderSelected'
|
|
},
|
|
|
|
removeFolder: function () {
|
|
this.model.destroy({ wait: true });
|
|
},
|
|
|
|
folderSelected: function () {
|
|
this.trigger('folderSelected', this.model);
|
|
}
|
|
});
|
|
});
|