Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js |
— | — | @@ -2210,14 +2210,8 @@ |
2211 | 2211 | var thanksDiv = $j( '<div class="mwe-upwiz-thanks ui-helper-clearfix" />' ); |
2212 | 2212 | _this.thanksDiv = thanksDiv; |
2213 | 2213 | |
2214 | | - var thumbnailDiv = $j( '<div class="mwe-upwiz-thumbnail mwe-upwiz-thumbnail-side"></div>' ); |
| 2214 | + var thumbnailDiv = $j( '<div class="mwe-upwiz-thumbnail mwe-upwiz-thumbnail-side" id="thanks-thumbnail"></div>' ); |
2215 | 2215 | upload.setThumbnail( thumbnailDiv ); |
2216 | | - thumbnailDiv.append( $j('<p/>').append( |
2217 | | - $j( '<a />' ) |
2218 | | - .attr( { target: '_new', |
2219 | | - href: upload.imageinfo.descriptionurl } ) |
2220 | | - .text( upload.title ) |
2221 | | - ) ); |
2222 | 2216 | |
2223 | 2217 | thanksDiv.append( thumbnailDiv ); |
2224 | 2218 | |
— | — | @@ -2248,6 +2242,8 @@ |
2249 | 2243 | ); |
2250 | 2244 | |
2251 | 2245 | $j( '#mwe-upwiz-thanks' ).append( thanksDiv ); |
| 2246 | + // Switch the thumbnail link so that it points to the image description page |
| 2247 | + $j( '#thanks-thumbnail a' ).attr( 'href', upload.imageinfo.descriptionurl ); |
2252 | 2248 | } ); |
2253 | 2249 | }, |
2254 | 2250 | |