Index: trunk/extensions/UploadWizard/resources/jquery/jquery.morphCrossfade.js |
— | — | @@ -97,20 +97,20 @@ |
98 | 98 | // take it out of the flow |
99 | 99 | $oldPanel.css( { position: 'absolute' } ); |
100 | 100 | // fade WITHOUT hiding when opacity = 0 |
101 | | - $oldPanel.animate( { opacity: 0 }, speed, 'linear', function() { |
| 101 | + $oldPanel.stop().animate( { opacity: 0 }, speed, 'linear', function() { |
102 | 102 | $oldPanel.css( { visibility: 'hidden'} ); |
103 | 103 | } ); |
104 | 104 | } |
105 | 105 | $container.data( 'crossfadeDisplay', $newPanel ); |
106 | 106 | |
107 | 107 | $newPanel.css( { visibility: 'visible' } ); |
108 | | - $container.animate( { height: $newPanel.outerHeight() }, speed, 'linear', function() { |
| 108 | + $container.stop().animate( { height: $newPanel.outerHeight() }, speed, 'linear', function() { |
109 | 109 | // we place it back into the flow, in case its size changes. |
110 | 110 | $newPanel.css( { position: 'relative' } ); |
111 | 111 | // and allow the container to grow with it. |
112 | 112 | $container.css( { height : 'auto' } ); |
113 | 113 | } ); |
114 | | - $newPanel.animate( { opacity: 1 }, speed ); |
| 114 | + $newPanel.stop().animate( { opacity: 1 }, speed ); |
115 | 115 | } |
116 | 116 | } ); |
117 | 117 | |