From d26ae3fa63cccc31a2b35c27c5d1f06009f591fd Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 26 May 2010 16:46:10 +0100 Subject: [PATCH] Pass effect duration through to RedBox, and use it in RedBox' appearWindow() too. --- horde/js/redbox.js | 2 +- kronolith/js/kronolith.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/horde/js/redbox.js b/horde/js/redbox.js index c7c0d6b59..9d120f0b2 100644 --- a/horde/js/redbox.js +++ b/horde/js/redbox.js @@ -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()) { diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 167888a67..8a144dce0 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -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')) { -- 2.11.0