From 299f901530c5568bd4c05c4787d3b271aaba9554 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 23 Dec 2009 12:32:51 -0700 Subject: [PATCH] RB_window may not exist until end of this function --- horde/js/redbox.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/horde/js/redbox.js b/horde/js/redbox.js index b51ceeeae..d92f52a67 100644 --- a/horde/js/redbox.js +++ b/horde/js/redbox.js @@ -25,8 +25,7 @@ var RedBox = { appearWindow: function() { var loading = $('RB_loading'), - opts = { duration: 0.4, queue: 'end' }, - w = $('RB_window'); + opts = { duration: 0.4, queue: 'end' }; if (loading && loading.visible()) { loading.hide(); @@ -38,7 +37,7 @@ var RedBox = { opts.afterFinish = this.onDisplay; } - w.appear(opts).scrollTo(); + $('RB_window').appear(opts).scrollTo(); }, loading: function() -- 2.11.0