Fix responsive
This commit is contained in:
parent
0bd47a3f50
commit
2b90df6f80
@ -841,10 +841,11 @@ function copyToClipboard(text,text2)
|
|||||||
* @return boolean False
|
* @return boolean False
|
||||||
* @see document_preview
|
* @see document_preview
|
||||||
*/
|
*/
|
||||||
function newpopup(url,title) {
|
function newpopup(url, title) {
|
||||||
var argv = newpopup.arguments;
|
var argv = newpopup.arguments;
|
||||||
var argc = newpopup.arguments.length;
|
var argc = newpopup.arguments.length;
|
||||||
tmp=url;
|
tmp=url;
|
||||||
|
console.log("newpopup "+argv[2]+" "+argv[3]);
|
||||||
var l = (argc > 2) ? argv[2] : 600;
|
var l = (argc > 2) ? argv[2] : 600;
|
||||||
var h = (argc > 3) ? argv[3] : 400;
|
var h = (argc > 3) ? argv[3] : 400;
|
||||||
var left = (screen.width - l)/2;
|
var left = (screen.width - l)/2;
|
||||||
|
|||||||
@ -1368,12 +1368,12 @@ else
|
|||||||
if (! empty($conf->use_javascript_ajax))
|
if (! empty($conf->use_javascript_ajax))
|
||||||
{
|
{
|
||||||
$widthpopup = 600;
|
$widthpopup = 600;
|
||||||
if ( empty($conf->dol_use_jmobile)) $widthpopup = 350;
|
if (! empty($conf->dol_use_jmobile)) $widthpopup = 350;
|
||||||
$heightpopup = 400;
|
$heightpopup = 400;
|
||||||
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"))."', '.$widthpopup.', '.$heightpopup.');\n";
|
print "newpopup('".DOL_URL_ROOT."/societe/checkvat/checkVatPopup.php?vatNumber='+a, '".dol_escape_js($langs->trans("VATIntraCheckableOnEUSite"))."', ".$widthpopup.", ".$heightpopup.");\n";
|
||||||
print "}\n";
|
print "}\n";
|
||||||
print '</script>';
|
print '</script>';
|
||||||
print "\n";
|
print "\n";
|
||||||
@ -2031,10 +2031,13 @@ else
|
|||||||
|
|
||||||
if ($conf->use_javascript_ajax)
|
if ($conf->use_javascript_ajax)
|
||||||
{
|
{
|
||||||
print "\n";
|
$widthpopup = 600;
|
||||||
|
if (! empty($conf->dol_use_jmobile)) $widthpopup = 350;
|
||||||
|
$heightpopup = 400;
|
||||||
|
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"))."',500,285);\n";
|
print "newpopup('".DOL_URL_ROOT."/societe/checkvat/checkVatPopup.php?vatNumber='+a,'".dol_escape_js($langs->trans("VATIntraCheckableOnEUSite"))."', ".$widthpopup.", ".$heightpopup.");\n";
|
||||||
print "}\n";
|
print "}\n";
|
||||||
print '</script>';
|
print '</script>';
|
||||||
print "\n";
|
print "\n";
|
||||||
@ -2440,10 +2443,13 @@ else
|
|||||||
|
|
||||||
if ($conf->use_javascript_ajax)
|
if ($conf->use_javascript_ajax)
|
||||||
{
|
{
|
||||||
|
$widthpopup = 600;
|
||||||
|
if (! empty($conf->dol_use_jmobile)) $widthpopup = 350;
|
||||||
|
$heightpopup = 400;
|
||||||
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"))."',500,285);\n";
|
print "newpopup('".DOL_URL_ROOT."/societe/checkvat/checkVatPopup.php?vatNumber='+a, '".dol_escape_js($langs->trans("VATIntraCheckableOnEUSite"))."', ".$widthpopup.", ".$heightpopup.");\n";
|
||||||
print "}\n";
|
print "}\n";
|
||||||
print '</script>';
|
print '</script>';
|
||||||
print "\n";
|
print "\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user