From e1327f2ec082490608bf81908785d75dbee3492e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 31 Aug 2005 20:53:16 +0000 Subject: [PATCH] L'appel auto a la popup autofill de ville ne se fait que sur "onChange" et non "onBlur" --- htdocs/soc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/soc.php b/htdocs/soc.php index c81de4de6a4..36a1905899e 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -259,7 +259,7 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') print ''; print ''.$langs->trans('Zip').'global->MAIN_AUTO_FILLTOWNFROMZIP) print ' onblur="PopupPostalCode(cp.value,ville)"'; + if ($conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' onChange="PopupPostalCode(cp.value,ville)"'; print '>'; if ($conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' '; print ''; @@ -393,7 +393,7 @@ elseif ($_GET["action"] == 'edit') print ''; print ''.$langs->trans('Zip').'global->MAIN_AUTO_FILLTOWNFROMZIP) print ' onblur="PopupPostalCode(cp.value,ville)"'; + if ($conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' onChange="PopupPostalCode(cp.value,ville)"'; print '>'; if ($conf->global->MAIN_AUTO_FILLTOWNFROMZIP) print ' '; print '';