Pass effect duration through to RedBox, and use it in RedBox' appearWindow() too.
authorJan <jan@horde.org>
Wed, 26 May 2010 15:46:10 +0000 (16:46 +0100)
committerJan Schneider <jan@horde.org>
Wed, 26 May 2010 15:58:33 +0000 (17:58 +0200)
horde/js/redbox.js
kronolith/js/kronolith.js

index c7c0d6b..9d120f0 100644 (file)
@@ -26,7 +26,7 @@ var RedBox = {
     appearWindow: function()
     {
         var loading = $('RB_loading'),
-            opts = { queue: 'end' },
+            opts = { queue: 'end', duration: this.duration },
             effects = [], effect;
 
         if (loading && loading.visible()) {
index 167888a..8a144dc 100644 (file)
@@ -5415,6 +5415,7 @@ KronolithCore = {
         RedBox.onDisplay = function() {
             this.redBoxLoading = false;
         }.bind(this);
+        RedBox.duration = this.effectDur;
 
         $('kronolithSearchTerm').observe('focus', function() {
             if ($F(this) == this.readAttribute('default')) {