From b71352e188917c61da8156b44fb1981d1a5e28cd Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 10 Mar 2010 23:57:01 +0100 Subject: [PATCH] Fix a race condition when calling close() and showHtml() in one context makes the appear and fade effects eliminate each other. --- horde/js/redbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }); } }, -- 2.11.0