mirror of
https://github.com/beestat/app.git
synced 2025-06-01 20:56:44 -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.
|
* Close the currently open modal.
|
||||||
*/
|
*/
|
||||||
beestat.component.modal.prototype.dispose = function() {
|
beestat.component.modal.prototype.dispose = function() {
|
||||||
|
if (this.rendered_ === true) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
this.modal_.style('transform', 'translateX(-50%) scale(0)');
|
this.modal_.style('transform', 'translateX(-50%) scale(0)');
|
||||||
@ -162,6 +163,7 @@ beestat.component.modal.prototype.dispose = function() {
|
|||||||
$(window).removeEventListener('click.modal');
|
$(window).removeEventListener('click.modal');
|
||||||
|
|
||||||
this.rendered_ = false;
|
this.rendered_ = false;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user