Skip to content

Commit

Permalink
Fix responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed May 22, 2019
1 parent 70aa77a commit 0bd47a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion htdocs/societe/card.php
Expand Up @@ -1367,10 +1367,13 @@ function init_supplier_categ() {

if (! empty($conf->use_javascript_ajax))
{
$widthpopup = 600;
if ( empty($conf->dol_use_jmobile)) $widthpopup = 350;
$heightpopup = 400;
print "\n";
print '<script language="JavaScript" type="text/javascript">';
print "function CheckVAT(a) {\n";
print "newpopup('".DOL_URL_ROOT."/societe/checkvat/checkVatPopup.php?vatNumber='+a,'".dol_escape_js($langs->trans("VATIntraCheckableOnEUSite"))."', 540, 350);\n";
print "newpopup('".DOL_URL_ROOT."/societe/checkvat/checkVatPopup.php?vatNumber='+a,'".dol_escape_js($langs->trans("VATIntraCheckableOnEUSite"))."', '.$widthpopup.', '.$heightpopup.');\n";
print "}\n";
print '</script>';
print "\n";
Expand Down

0 comments on commit 0bd47a3

Please sign in to comment.