From 2b90df6f80d8b417b528a3c0f95fc80a7dcf4c96 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 22 May 2019 16:08:21 +0200 Subject: [PATCH] Fix responsive --- htdocs/core/js/lib_head.js.php | 3 ++- htdocs/societe/card.php | 16 +++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/htdocs/core/js/lib_head.js.php b/htdocs/core/js/lib_head.js.php index db86d5e8b58..cf8557de961 100644 --- a/htdocs/core/js/lib_head.js.php +++ b/htdocs/core/js/lib_head.js.php @@ -841,10 +841,11 @@ function copyToClipboard(text,text2) * @return boolean False * @see document_preview */ -function newpopup(url,title) { +function newpopup(url, title) { var argv = newpopup.arguments; var argc = newpopup.arguments.length; tmp=url; + console.log("newpopup "+argv[2]+" "+argv[3]); var l = (argc > 2) ? argv[2] : 600; var h = (argc > 3) ? argv[3] : 400; var left = (screen.width - l)/2; diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php index be9ff83cb45..9c688c19c99 100644 --- a/htdocs/societe/card.php +++ b/htdocs/societe/card.php @@ -1368,12 +1368,12 @@ else if (! empty($conf->use_javascript_ajax)) { $widthpopup = 600; - if ( empty($conf->dol_use_jmobile)) $widthpopup = 350; + if (! empty($conf->dol_use_jmobile)) $widthpopup = 350; $heightpopup = 400; print "\n"; print ''; print "\n"; @@ -2031,10 +2031,13 @@ else if ($conf->use_javascript_ajax) { - print "\n"; + $widthpopup = 600; + if (! empty($conf->dol_use_jmobile)) $widthpopup = 350; + $heightpopup = 400; + print "\n"; print ''; print "\n"; @@ -2440,10 +2443,13 @@ else if ($conf->use_javascript_ajax) { + $widthpopup = 600; + if (! empty($conf->dol_use_jmobile)) $widthpopup = 350; + $heightpopup = 400; print "\n"; print ''; print "\n";