r84076 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84075‎ | r84076 | r84077 >
Date:01:35, 16 March 2011
Author:dale
Status:deferred
Tags:
Comment:
fixed large thumbnails
Modified paths:
  • /branches/uploadwizard-firefogg/resources/mw.UploadWizardUploadInterface.js (modified) (history)

Diff [purge]

Index: branches/uploadwizard-firefogg/resources/mw.UploadWizardUploadInterface.js
@@ -133,7 +133,11 @@
134134 */
135135 setPreview: function( image ) {
136136 // 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+ )
138142 },
139143
140144 /**

Status & tagging log