diff --git a/htdocs/ajaxbox.php b/htdocs/ajaxbox.php
index 72a01728500..31c90506857 100644
--- a/htdocs/ajaxbox.php
+++ b/htdocs/ajaxbox.php
@@ -23,9 +23,10 @@
* \version $Id$
*/
-if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
-if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
-if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
+if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL','1'); // Disables token renewal
+if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
+if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
+if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
// This is to make Dolibarr working with Plesk
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php
index bdacde356a3..5ef158d875a 100644
--- a/htdocs/html.form.class.php
+++ b/htdocs/html.form.class.php
@@ -248,7 +248,7 @@ class Form
}
print ajax_indicator($htmlname,'working');
- print ajax_autocompleter($pays_id,'pays','/societe/ajaxcountries.php','');
+ print ajax_autocompleter($pays_id,'pays',DOL_URL_ROOT.'/societe/ajaxcountries.php','');
}
else
{
@@ -495,7 +495,7 @@ class Form
//$htmloption = 'onChange="ac_delay(\''.$javaScript.'\',\'500\')"';
$htmloption='';
- print ''."\n";
+ print "\n".''."\n";
print '
';
print '
';
if ($socid == 0)
@@ -507,7 +507,7 @@ class Form
{
print '';
}
- print ajax_autocompleter(($socid?$socid:-1),$htmlname,'/societe/ajaxcompanies.php?filter='.urlencode($filter), '');
+ print ajax_autocompleter(($socid?$socid:-1),$htmlname,DOL_URL_ROOT.'/societe/ajaxcompanies.php?filter='.urlencode($filter), '');
print '
';
print '
';
print ajax_indicator($htmlname,'working');
@@ -771,18 +771,17 @@ class Form
if ($conf->global->PRODUIT_USE_SEARCH_TO_SELECT)
{
- print '
';
- print '
';
+ print '
';
+ print '
';
print $langs->trans("RefOrLabel").':
';
- print '
';
+ print '
';
print ajax_indicator($htmlname,'working'); // Indicator is et here
print '
';
- print '
';
- print '
';
+ print '
';
print '
';
print '
';
print '
';
- print ajax_updater($htmlname,'keysearch','/product/ajaxproducts.php','&price_level='.$price_level.'&type='.$filtertype.'&mode=1&status='.$status.'&finished='.$finished,''); // Indicator is '' to disable it as it is alreay output
+ print ajax_updater($htmlname,'keysearch',DOL_URL_ROOT.'/product/ajaxproducts.php','&price_level='.$price_level.'&type='.$filtertype.'&mode=1&status='.$status.'&finished='.$finished,''); // Indicator is '' to disable it as it is alreay output
print '