diff --git a/code/boot.js b/code/boot.js index c38462e6..b0d8be7c 100644 --- a/code/boot.js +++ b/code/boot.js @@ -9,19 +9,14 @@ window.showZoom = true; window.setupLargeImagePreview = function() { $('#portaldetails').on('click', '.imgpreview', function() { var img = $(this).find('img')[0]; - var w = img.naturalWidth, c = $('#portaldetails').attr('class'); - var d = dialog({ - html: '' + img.outerHTML + '', - title: $(this).parent().find('h3.title').html() + //dialogs have 12px padding around the content + var dlgWidth = Math.max(img.naturalWidth+24,400); + dialog({ + html: '