Fix resize functions

Change-Id: I074a704e76c5c42890d65d8235854a998f3e4af9
This commit is contained in:
Mark Holmquist 2014-01-14 21:26:38 -08:00
parent 03ef24563b
commit 0b46a65794

View file

@ -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;