mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-26 23:06:43 -04:00
15 lines
483 B
JavaScript
15 lines
483 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);
|
|
}
|
|
});
|
|
}
|
|
}); |