From f51cdf206cb208948190097b981abf9d4485fc43 Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 9 Jul 2009 04:00:35 +0000 Subject: Scale: Reset opacity after animation. Fixed #4274 - New show hide effects don't execute correctly in IE. --- ui/effects.scale.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/effects.scale.js b/ui/effects.scale.js index 3a2023537..3b5a02ca4 100644 --- a/ui/effects.scale.js +++ b/ui/effects.scale.js @@ -162,6 +162,9 @@ $.effects.size = function(o) { // Animate el.animate(el.to, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() { + if (el.to.opacity === 0) { + el.css('opacity', el.from.opacity); + } if(mode == 'hide') el.hide(); // Hide $.effects.restore(el, restore ? props : props1); $.effects.removeWrapper(el); // Restore if(o.callback) o.callback.apply(this, arguments); // Callback -- cgit v1.2.3