mirror of
https://github.com/beestat/app.git
synced 2025-05-31 12:16:39 -04:00
Fixed #262 - Closing a modal while it's saving and before it's closed errors.
This commit is contained in:
parent
a0b8b45057
commit
092ed81ac9
@ -143,6 +143,7 @@ beestat.component.modal.prototype.decorate_ = function() {
|
||||
* Close the currently open modal.
|
||||
*/
|
||||
beestat.component.modal.prototype.dispose = function() {
|
||||
if (this.rendered_ === true) {
|
||||
var self = this;
|
||||
|
||||
this.modal_.style('transform', 'translateX(-50%) scale(0)');
|
||||
@ -162,6 +163,7 @@ beestat.component.modal.prototype.dispose = function() {
|
||||
$(window).removeEventListener('click.modal');
|
||||
|
||||
this.rendered_ = false;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user