From b95cd34c75ad40cdf10440f1ad52912cbf336445 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 3 Feb 2013 19:22:01 +0100 Subject: [PATCH] Fix enlarging in ImageViewer --- wcfsetup/install/files/js/WCF.ImageViewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }, -- 2.20.1