mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 09:03:49 -07:00
Cleaned up per comments
This commit is contained in:
parent
4d101cc6dc
commit
af6e3ddb66
13 changed files with 41 additions and 36 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue