mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-19 21:46:50 -04:00
24 lines
548 B
JavaScript
24 lines
548 B
JavaScript
'use strict';
|
|
|
|
define([
|
|
'vent',
|
|
'marionette'
|
|
], function (vent, Marionette) {
|
|
return Marionette.ItemView.extend({
|
|
template: 'Settings/DownloadClient/Delete/DownloadClientDeleteViewTemplate',
|
|
|
|
events: {
|
|
'click .x-confirm-delete': '_delete'
|
|
},
|
|
|
|
_delete: function () {
|
|
this.model.destroy({
|
|
wait : true,
|
|
success: function () {
|
|
vent.trigger(vent.Commands.CloseModalCommand);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
});
|