mirror of
https://github.com/Lidarr/Lidarr
synced 2026-03-06 04:24:09 +01:00
19 lines
No EOL
498 B
JavaScript
19 lines
No EOL
498 B
JavaScript
var vent = require('vent');
|
|
var Marionette = require('marionette');
|
|
|
|
module.exports = Marionette.ItemView.extend({
|
|
template : 'Settings/DownloadClient/RemotePathMapping/RemotePathMappingDeleteViewTemplate',
|
|
|
|
events : {
|
|
'click .x-confirm-delete' : '_delete'
|
|
},
|
|
|
|
_delete : function() {
|
|
this.model.destroy({
|
|
wait : true,
|
|
success : function() {
|
|
vent.trigger(vent.Commands.CloseModalCommand);
|
|
}
|
|
});
|
|
}
|
|
}); |