mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 09:01:40 +01:00
Fix: ajout traitement pour la liste droulante des pays dans configuration->societe
This commit is contained in:
@@ -327,15 +327,21 @@ class Form
|
||||
$pays_id = $obj->rowid?$obj->rowid:'';
|
||||
|
||||
// On applique un delai d'execution pour le bon fonctionnement
|
||||
$mode = substr($htmloption,-9,6);
|
||||
if ($mode == 'create')
|
||||
$mode_create = substr($htmloption,-9,6);
|
||||
$mode_edit = substr($htmloption,-7,4);
|
||||
$mode_company = substr($htmloption,-10,7);
|
||||
if ($mode_create == 'create')
|
||||
{
|
||||
$htmloption = 'onChange="ac_delay(\'autofilltownfromzip_save_refresh_create()\',\'500\')"';
|
||||
}
|
||||
else
|
||||
else if ($mode_edit == 'edit')
|
||||
{
|
||||
$htmloption = 'onChange="ac_delay(\'autofilltownfromzip_save_refresh_edit()\',\'500\')"';
|
||||
}
|
||||
else if ($mode_company == 'refresh')
|
||||
{
|
||||
$htmloption = 'onChange="ac_delay(\'company_save_refresh()\',\'500\')"';
|
||||
}
|
||||
|
||||
print '<div>';
|
||||
print '<input type="text" size="45" id="pays" name="pays" value="'.$obj->libelle.'" '.$htmloption.' />';
|
||||
|
||||
Reference in New Issue
Block a user