mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-10 10:47:02 +00:00
18 lines
481 B
JavaScript
18 lines
481 B
JavaScript
var vent = require('vent');
|
|
var Marionette = require('marionette');
|
|
|
|
module.exports = Marionette.ItemView.extend({
|
|
template : 'Settings/Notifications/Delete/NotificationDeleteViewTemplate',
|
|
|
|
events : {
|
|
'click .x-confirm-delete' : '_delete'
|
|
},
|
|
_delete : function() {
|
|
this.model.destroy({
|
|
wait : true,
|
|
success : function() {
|
|
vent.trigger(vent.Commands.CloseModalCommand);
|
|
}
|
|
});
|
|
}
|
|
}); |