mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-11-01 16:32:56 +01:00
27 lines
614 B
JavaScript
27 lines
614 B
JavaScript
'use strict';
|
|
|
|
define(
|
|
[
|
|
'marionette'
|
|
], function (Marionette) {
|
|
|
|
return Marionette.ItemView.extend({
|
|
|
|
template: 'AddSeries/RootFolders/RootFolderItemTemplate',
|
|
tagName : 'tr',
|
|
|
|
events: {
|
|
'click .x-delete': 'removeFolder',
|
|
'click .x-folder': 'folderSelected'
|
|
},
|
|
|
|
removeFolder: function () {
|
|
this.model.destroy({ wait: true });
|
|
},
|
|
|
|
folderSelected: function () {
|
|
this.trigger('folderSelected', this.model);
|
|
}
|
|
});
|
|
});
|