1
0
mirror of https://github.com/beestat/app.git synced 2025-05-31 04:06:32 -04:00

Fixed #262 - Closing a modal while it's saving and before it's closed errors.

This commit is contained in:
Jon Ziebell 2020-03-04 20:55:11 -05:00
parent a0b8b45057
commit 092ed81ac9

View File

@ -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;
}
};
/**