Fix popup
This commit is contained in:
parent
0e7be8365c
commit
7d2d12348c
@ -1370,12 +1370,12 @@ else
|
|||||||
print "\n";
|
print "\n";
|
||||||
print '<script language="JavaScript" type="text/javascript">';
|
print '<script language="JavaScript" type="text/javascript">';
|
||||||
print "function CheckVAT(a) {\n";
|
print "function CheckVAT(a) {\n";
|
||||||
print "newpopup('".DOL_URL_ROOT."/societe/checkvat/checkVatPopup.php?vatNumber='+a,'".dol_escape_js($langs->trans("VATIntraCheckableOnEUSite"))."',520,340);\n";
|
print "newpopup('".DOL_URL_ROOT."/societe/checkvat/checkVatPopup.php?vatNumber='+a,'".dol_escape_js($langs->trans("VATIntraCheckableOnEUSite"))."', 540, 350);\n";
|
||||||
print "}\n";
|
print "}\n";
|
||||||
print '</script>';
|
print '</script>';
|
||||||
print "\n";
|
print "\n";
|
||||||
$s.='<a href="#" class="hideonsmartphone" onclick="javascript: CheckVAT(document.formsoc.tva_intra.value);">'.$langs->trans("VATIntraCheck").'</a>';
|
$s.='<a href="#" class="hideonsmartphone" onclick="javascript: CheckVAT(document.formsoc.tva_intra.value);">'.$langs->trans("VATIntraCheck").'</a>';
|
||||||
$s = $form->textwithpicto($s, $langs->trans("VATIntraCheckDesc", $langs->trans("VATIntraCheck")), 1);
|
$s = $form->textwithpicto($s, $langs->trans("VATIntraCheckDesc", $langs->transnoentitiesnoconv("VATIntraCheck")), 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user