mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
24 lines
621 B
JavaScript
24 lines
621 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'vent',
|
|
'marionette'
|
|
], function (vent, Marionette) {
|
|
return Marionette.ItemView.extend({
|
|
template: 'Settings/Indexers/DeleteViewTemplate',
|
|
|
|
events: {
|
|
'click .x-confirm-delete': '_removeNotification'
|
|
},
|
|
|
|
_removeNotification: function () {
|
|
this.model.destroy({
|
|
wait : true,
|
|
success: function () {
|
|
vent.trigger(vent.Commands.CloseModalCommand);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
});
|