From a597a2a6ffafad38dd2d4fd6d3092916a6ba5b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 12 Nov 2015 11:40:47 +0100 Subject: [PATCH] fargo: don't create oversized validation dialogs (#8960) --- wcs/qommon/static/js/fargo.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wcs/qommon/static/js/fargo.js b/wcs/qommon/static/js/fargo.js index 69c6194..75443de 100644 --- a/wcs/qommon/static/js/fargo.js +++ b/wcs/qommon/static/js/fargo.js @@ -15,13 +15,10 @@ $(function() { e.preventDefault(); var src = $(e.target).attr('href'); var title = $(e.target).data("title"); - var width = $(e.target).data("width"); - var height = $(e.target).data("height"); iframe.attr({ - width: parseInt(width), - height: parseInt(height), src: src }); + iframe.css({'width': '100%', 'min-height': '25em'}); iframe.on('load', function() { iframe.off('load'); iframe[0].contentWindow.postMessage(JSON.stringify({'message': 'helloFargo'}), '*'); -- 2.6.2