Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayer.js |
— | — | @@ -1091,9 +1091,11 @@ |
1092 | 1092 | // mw.log('appended: new_img_thumb_'); |
1093 | 1093 | $( '#new_img_thumb_' + this.id ).fadeIn( "slow", function() { |
1094 | 1094 | // once faded in remove org and rename new: |
1095 | | - $( '#img_thumb_' + _this.id ).remove(); |
1096 | | - $( '#new_img_thumb_' + _this.id ).attr( 'id', 'img_thumb_' + _this.id ); |
1097 | | - $( '#img_thumb_' + _this.id ).css( 'z-index', '1' ); |
| 1095 | + $( '#img_thumb_' + _this.id ) |
| 1096 | + .replaceWith( $( '#new_img_thumb_' + _this.id ) ) |
| 1097 | + .attr( 'id', 'img_thumb_' + _this.id ) |
| 1098 | + .css( 'z-index', '1' ); |
| 1099 | + |
1098 | 1100 | _this.thumbnailUpdatingFlag = false; |
1099 | 1101 | |
1100 | 1102 | // if we have a thumb queued update to that |