diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-07-09 04:00:35 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-07-09 04:00:35 +0000 |
commit | f51cdf206cb208948190097b981abf9d4485fc43 (patch) | |
tree | 831fd2ea654084fd70ae7597ef8998137308f08c | |
parent | 292d9df1cec4d882961265dd2331b825e9549c4a (diff) | |
download | jquery-ui-f51cdf206cb208948190097b981abf9d4485fc43.tar.gz jquery-ui-f51cdf206cb208948190097b981abf9d4485fc43.zip |
Scale: Reset opacity after animation. Fixed #4274 - New show hide effects don't execute correctly in IE.
-rw-r--r-- | ui/effects.scale.js | 3 |
1 files changed, 3 insertions, 0 deletions
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 |