From: Marcel Werk Date: Mon, 12 Aug 2013 09:55:23 +0000 (+0200) Subject: Fixed resize of cached images X-Git-Tag: 2.0.0_Beta_7~36 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7961df36b22df027fb628338881d5dd58266b677;p=GitHub%2FWoltLab%2FWCF.git Fixed resize of cached images --- diff --git a/wcfsetup/install/files/js/WCF.ImageViewer.js b/wcfsetup/install/files/js/WCF.ImageViewer.js index 091a4df7e7..a90e5757af 100644 --- a/wcfsetup/install/files/js/WCF.ImageViewer.js +++ b/wcfsetup/install/files/js/WCF.ImageViewer.js @@ -64,6 +64,10 @@ WCF.ImageViewer = Class.extend({ * Initializes the image size check. */ _initImageSizeCheck: function() { + $('.jsResizeImage').each($.proxy(function(index, image) { + if (image.complete) this._checkImageSize({ currentTarget: image }); + }, this)); + $('.jsResizeImage').on('load', $.proxy(this._checkImageSize, this)); },