1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-31 16:02:29 +01:00
Sonarr/UI/Settings/Notifications/DeleteView.js

20 lines
514 B
JavaScript
Raw Normal View History

2013-05-29 04:49:17 +02:00
'use strict';
2013-06-19 03:02:23 +02:00
define(['app', 'marionette'], function (App, Marionette) {
return Marionette.ItemView.extend({
2013-05-29 04:49:17 +02:00
template: 'Settings/Notifications/DeleteTemplate',
events: {
'click .x-confirm-delete': 'removeNotification'
},
removeNotification: function () {
this.model.destroy({
wait : true,
2013-06-19 03:02:23 +02:00
success: function () {
App.modalRegion.closeModal();
2013-05-29 04:49:17 +02:00
}
});
}
});
});