Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js |
— | — | @@ -211,12 +211,6 @@ |
212 | 212 | mw.UploadWizard.config[ 'iconThumbnailWidth' ], |
213 | 213 | mw.UploadWizard.config[ 'iconThumbnailMaxHeight' ] |
214 | 214 | ); |
215 | | - // create the large thumbnail that the other thumbnails link to |
216 | | - _this.getThumbnail( |
217 | | - function( image ) {}, |
218 | | - mw.UploadWizard.config[ 'largeThumbnailWidth' ], |
219 | | - mw.UploadWizard.config[ 'largeThumbnailMaxHeight' ] |
220 | | - ); |
221 | 215 | _this.deedPreview.setup(); |
222 | 216 | _this.details.populate(); |
223 | 217 | _this.state = 'stashed'; |
— | — | @@ -412,23 +406,14 @@ |
413 | 407 | height = parseInt( height, 10 ); |
414 | 408 | } |
415 | 409 | |
416 | | - var href = '#'; |
417 | | - $j.each( [ 'descriptionurl', 'url' ], function( i, propName ) { |
418 | | - var prop = _this.imageinfo[ propName ]; |
419 | | - if ( prop ) { |
420 | | - href = prop; |
421 | | - return false; |
422 | | - } |
423 | | - } ); |
424 | | - |
425 | 410 | var callback = function( image ) { |
426 | 411 | if ( image === null ) { |
427 | 412 | $j( selector ).addClass( 'mwe-upwiz-file-preview-broken' ); |
428 | 413 | _this.ui.setStatus( 'mwe-upwiz-thumbnail-failed' ); |
429 | 414 | } else { |
430 | 415 | $j( selector ).html( |
431 | | - $j( '<a/>' ) |
432 | | - .attr( { 'href': href, |
| 416 | + $j( '<a class="mwe-upwiz-thumbnail-link"></a>' ) |
| 417 | + .attr( { 'href': '#', |
433 | 418 | 'target' : '_new' } ) |
434 | 419 | .append( |
435 | 420 | $j( '<img/>' ) |