RB_window may not exist until end of this function
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 23 Dec 2009 19:32:51 +0000 (12:32 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 23 Dec 2009 19:32:51 +0000 (12:32 -0700)
horde/js/redbox.js

index b51ceee..d92f52a 100644 (file)
@@ -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()