Index: branches/uploadwizard-firefogg/resources/mw.UploadWizardUploadInterface.js |
— | — | @@ -133,7 +133,11 @@ |
134 | 134 | */ |
135 | 135 | setPreview: function( image ) { |
136 | 136 | // encoding for url here? |
137 | | - $j( this.div ).find( '.mwe-upwiz-file-preview' ).css( 'background-image', 'url(' + image.src + ')' ); |
| 137 | + $j( this.div ).find( '.mwe-upwiz-file-preview' ).append( |
| 138 | + $j('<img />') |
| 139 | + .css({'width':'100%', 'height': '100%'}) |
| 140 | + .attr('src', image.src ) |
| 141 | + ) |
138 | 142 | }, |
139 | 143 | |
140 | 144 | /** |