mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Cleaned up per comments
This commit is contained in:
@@ -11,12 +11,10 @@ define(['app', 'Settings/Notifications/Model'], function () {
|
||||
removeNotification: function () {
|
||||
var self = this;
|
||||
|
||||
//Success is not getting triggered: http://stackoverflow.com/questions/6988873/backbone-model-destroy-not-triggering-success-function-on-success
|
||||
this.model.destroy({
|
||||
wait : true,
|
||||
success: function (model) {
|
||||
model.collection.remove(model);
|
||||
self.$el.parent().modal('hide');
|
||||
NzbDrone.modalRegion.closeModal();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user