From: Tim Düsterhus Date: Sun, 3 Feb 2013 18:22:01 +0000 (+0100) Subject: Fix enlarging in ImageViewer X-Git-Tag: 2.0.0_Beta_1~516^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b95cd34c75ad40cdf10440f1ad52912cbf336445;p=GitHub%2FWoltLab%2FWCF.git Fix enlarging in ImageViewer --- diff --git a/wcfsetup/install/files/js/WCF.ImageViewer.js b/wcfsetup/install/files/js/WCF.ImageViewer.js index 183db1a074..caf4ce0a5e 100644 --- a/wcfsetup/install/files/js/WCF.ImageViewer.js +++ b/wcfsetup/install/files/js/WCF.ImageViewer.js @@ -62,7 +62,7 @@ WCF.ImageViewer = Class.extend({ _enlarge: function() { var $url = $('#lbImage').css('backgroundImage'); if ($url) { - $url = $url.substring(4, $url.length - 1); + $url = $url.replace(/^url\((["']?)(.*)\1\)$/, '$2'); window.location = $url; } },