diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 50b986774b9..d788cc556a7 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -556,22 +556,16 @@ class Form print "\n".''."\n"; print ''; print ''; - //print ''; print ''; print '
'; - print ajax_autocompleter(($socid?$socid:-1),$htmlname,'socid',DOL_URL_ROOT.'/societe/ajaxcompanies.php?filter='.urlencode($filter), ''); - print '
'; if ($socid == 0) { - print ''; + print ''; } else { print ''; } - print '
'; - //print ajax_autocompleter(($socid?$socid:-1),$htmlname,'socid',DOL_URL_ROOT.'/societe/ajaxcompanies.php?filter='.urlencode($filter), ''); + print ajax_autocompleter(($socid?$socid:-1),$htmlname,'socid',DOL_URL_ROOT.'/societe/ajaxcompanies.php?filter='.urlencode($filter), ''); print '
'; - //print ajax_indicator($htmlname,'working'); // Indicator is here - //print '
'; } diff --git a/htdocs/lib/ajax.lib.php b/htdocs/lib/ajax.lib.php index cd600f992be..0aaa3d3ae0b 100644 --- a/htdocs/lib/ajax.lib.php +++ b/htdocs/lib/ajax.lib.php @@ -90,24 +90,15 @@ function ajax_autocompleter($selected='',$htmlname,$value,$url,$indicator='worki //$script.= '
'; $script.= '