r2899 - Scale: Reset opacity after animation. Fixed #4274 - New show hide effects don't execute c...

r2899 - Scale: Reset opacity after animation. Fixed #4274 - New show hide effects don't execute c...


Author: scott.gonzalez
Date: Wed Jul 8 21:00:35 2009
New Revision: 2899
Modified:
trunk/ui/effects.scale.js
Log:
Scale: Reset opacity after animation. Fixed #4274 - New show hide effects
don't execute correctly in IE.
Modified: trunk/ui/effects.scale.js
==============================================================================
--- trunk/ui/effects.scale.js    (original)
+++ trunk/ui/effects.scale.js    Wed Jul 8 21:00:35 2009
@@ -162,6 +162,9 @@
        // 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