From 8df60625a5e40ae27d1df4e2efac0dc000758337 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 13 Oct 2010 16:47:49 +0000 Subject: [PATCH] Fix: change the content of county select if country is different --- htdocs/lib/ajax.lib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/lib/ajax.lib.php b/htdocs/lib/ajax.lib.php index 3be2160179b..4a06e48f37a 100644 --- a/htdocs/lib/ajax.lib.php +++ b/htdocs/lib/ajax.lib.php @@ -161,6 +161,9 @@ function ajax_multiautocompleter($htmlname,$fields,$url,$option='') response( jQuery.map( data, function( item ) { if (data.length == 1) { jQuery("#'.$htmlname.'").val(item.value); + if (item.countydata) { + jQuery("#departement_id").html(item.countydata); + } for (i=0;i