Index: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.defaultOptions.js |
— | — | @@ -343,6 +343,7 @@ |
344 | 344 | gallery: { |
345 | 345 | imageList: [ 'Cucciolo gatto Bibo.jpg', 'Kitten (06) by Ron.jpg', 'Kitten-stare.jpg', 'Red Kitten 01.jpg', 'Kitten in a helmet.jpg', 'Cute grey kitten.jpg' ], |
346 | 346 | width: 145, |
| 347 | + height: 150, |
347 | 348 | number: 3 |
348 | 349 | }, |
349 | 350 | icon: mw.config.get( 'wgExtensionAssetsPath' ) + '/WikiLove/modules/ext.wikiLove/images/icons/wikilove-icon-kitten.png' |
Index: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js |
— | — | @@ -477,7 +477,8 @@ |
478 | 478 | 'prop' : 'imageinfo', |
479 | 479 | 'iiprop' : 'mime|url', |
480 | 480 | 'titles' : titles, |
481 | | - 'iiurlwidth' : currentTypeOrSubtype.gallery.width |
| 481 | + 'iiurlwidth' : currentTypeOrSubtype.gallery.width, |
| 482 | + 'iiurlheight' : currentTypeOrSubtype.gallery.height |
482 | 483 | }, |
483 | 484 | dataType: 'json', |
484 | 485 | type: 'POST', |
— | — | @@ -494,10 +495,9 @@ |
495 | 496 | |
496 | 497 | $.each( data.query.pages, function( id, page ) { |
497 | 498 | if ( page.imageinfo && page.imageinfo.length ) { |
498 | | - // build an image tag with the correct url and width |
| 499 | + // build an image tag with the correct url |
499 | 500 | var $img = $( '<img/>' ) |
500 | 501 | .attr( 'src', page.imageinfo[0].thumburl ) |
501 | | - .attr( 'width', currentTypeOrSubtype.gallery.width ) |
502 | 502 | .hide() |
503 | 503 | .load( function() { |
504 | 504 | $( this ).css( 'display', 'inline-block' ); |