https://www.mediawiki.org/wiki/Special:Code/MediaWiki/103545

Revision: 103545
Author:   dale
Date:     2011-11-18 00:47:09 +0000 (Fri, 18 Nov 2011)
Log Message:
-----------
more clear image swap

Modified Paths:
--------------
    
trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayer.js

Modified: 
trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayer.js
===================================================================
--- 
trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayer.js
   2011-11-18 00:44:34 UTC (rev 103544)
+++ 
trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayer.js
   2011-11-18 00:47:09 UTC (rev 103545)
@@ -1091,9 +1091,11 @@
                        // mw.log('appended: new_img_thumb_');
                        $( '#new_img_thumb_' + this.id ).fadeIn( "slow", 
function() {
                                        // once faded in remove org and rename 
new:
-                                       $( '#img_thumb_' + _this.id ).remove();
-                                       $( '#new_img_thumb_' + _this.id ).attr( 
'id', 'img_thumb_' + _this.id );
-                                       $( '#img_thumb_' + _this.id ).css( 
'z-index', '1' );
+                                       $( '#img_thumb_' + _this.id )
+                                               .replaceWith( $( 
'#new_img_thumb_' + _this.id ) )
+                                               .attr( 'id', 'img_thumb_' + 
_this.id )
+                                               .css( 'z-index', '1' );
+                                                       
                                        _this.thumbnailUpdatingFlag = false;
 
                                        // if we have a thumb queued update to 
that


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to