diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 556f8651791..0ce30b18155 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -325,10 +325,22 @@ class Form { $obj = $this->db->fetch_object($resql); $pays_id = $obj->rowid?$obj->rowid:''; + + // On applique un delai d'execution pour le bon fonctionnement + $mode = substr($htmloption,-9,6); + if ($mode == 'create') + { + $htmloption = 'onChange="ac_delay(\'autofilltownfromzip_save_refresh_create()\',\'500\')"'; + } + else + { + $htmloption = 'onChange="ac_delay(\'autofilltownfromzip_save_refresh_edit()\',\'500\')"'; + } + print '