From: Jan Schneider Date: Wed, 10 Mar 2010 22:57:01 +0000 (+0100) Subject: Fix a race condition when calling close() and showHtml() in one context makes X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b71352e188917c61da8156b44fb1981d1a5e28cd;p=horde.git Fix a race condition when calling close() and showHtml() in one context makes the appear and fade effects eliminate each other. --- diff --git a/horde/js/redbox.js b/horde/js/redbox.js index bfc85965c..2ae9947a3 100644 --- a/horde/js/redbox.js +++ b/horde/js/redbox.js @@ -54,7 +54,7 @@ var RedBox = { close: function() { $('RB_window').fade({ duration: 0.4 }); - if (this.overlay) { + if (this.overlay && this.overlayVisible()) { $('RB_overlay').fade({ duration: 0.4 }); } },