mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-09-25 03:09:40 +00:00
Fix resize functions
Change-Id: I074a704e76c5c42890d65d8235854a998f3e4af9
This commit is contained in:
parent
03ef24563b
commit
0b46a65794
|
@ -320,8 +320,8 @@
|
|||
var viewer = this,
|
||||
fileTitle = this.currentImageFileTitle;
|
||||
|
||||
this.fetchImageInfo( fileTitle, [ 'url' ] ).done( function ( imageData, repoInfo, targetWidth ) {
|
||||
viewer.loadResizedImage( ui, imageData, targetWidth );
|
||||
this.fetchImageInfo( fileTitle, [ 'url' ] ).done( function ( imageData, repoInfo, targetWidth, requestedWidth ) {
|
||||
viewer.loadResizedImage( ui, imageData, targetWidth, requestedWidth );
|
||||
} );
|
||||
};
|
||||
|
||||
|
@ -333,6 +333,7 @@
|
|||
* @param {LightboxInterface} ui lightbox that got resized
|
||||
* @param {mw.mmv.model.Image} imageData information regarding the new resized image
|
||||
* @param {number} targetWidth
|
||||
* @param {number} requestedWidth
|
||||
*/
|
||||
MMVP.loadResizedImage = function ( ui, imageData, targetWidth, requestedWidth ) {
|
||||
var rpid, viewer, image, maybeThumb;
|
||||
|
|
Loading…
Reference in a new issue