From 2b2592e90438d3ce696fa9ff37aef87f5284fb0e Mon Sep 17 00:00:00 2001 From: Stefan Breunig Date: Sun, 17 Feb 2013 13:38:59 +0100 Subject: [PATCH] =?UTF-8?q?don=E2=80=99t=20copy=20the=20portal=20level=20w?= =?UTF-8?q?hen=20previewing=20the=20portal=20img?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/boot.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/boot.js b/code/boot.js index 14e6c22d..7a7c7c6f 100644 --- a/code/boot.js +++ b/code/boot.js @@ -12,12 +12,12 @@ window.setupLargeImagePreview = function() { ex.remove(); return; } - var img = $(this).html(); - var w = $(this).find('img')[0].naturalWidth/2; - var h = $(this).find('img')[0].naturalHeight/2; + var img = $(this).find('img')[0]; + var w = img.naturalWidth/2; + var h = img.naturalHeight/2; var c = $('#portaldetails').attr('class'); $('body').append( - '
' + img + '
' + '
' + img.outerHTML + '
' ); $('#largepreview').click(function() { $(this).remove() }); });