mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-17 21:26:22 -04:00
Fixed: Cancelling editing a modal will reset to previous saved state
This commit is contained in:
@@ -32,14 +32,24 @@ define(
|
||||
backdrop : true
|
||||
});
|
||||
|
||||
this.$el.on('hide.bs.modal', $.proxy(this._closing, this));
|
||||
|
||||
this.currentView.$el.addClass('modal-dialog');
|
||||
},
|
||||
|
||||
closeModal: function () {
|
||||
$(this.el).modal('hide');
|
||||
this.reset();
|
||||
}
|
||||
},
|
||||
|
||||
_closing: function () {
|
||||
|
||||
if (this.$el) {
|
||||
this.$el.off('hide.bs.modal');
|
||||
}
|
||||
|
||||
this.reset();
|
||||
}
|
||||
});
|
||||
|
||||
return region;
|
||||
|
||||
Reference in New Issue
Block a user