From 8543fdfc039b3f10e272777dc0904bfdf2ee8bdb Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 13 Oct 2010 17:03:28 +0000 Subject: [PATCH] Todo: move this to specific request with other change if other country --- htdocs/lib/ajax.lib.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/lib/ajax.lib.php b/htdocs/lib/ajax.lib.php index d2a950749d3..19e5aee51ee 100644 --- a/htdocs/lib/ajax.lib.php +++ b/htdocs/lib/ajax.lib.php @@ -106,6 +106,7 @@ function ajax_multiautocompleter($htmlname,$fields,$url,$option='') response( jQuery.map( data, function( item ) { if (data.length == 1) { jQuery("#'.$htmlname.'").val(item.value); + // TODO move this to specific request if (item.states) { jQuery("#departement_id").html(item.states); } @@ -120,6 +121,7 @@ function ajax_multiautocompleter($htmlname,$fields,$url,$option='') }); }, select: function( event, ui ) { + // TODO move this to specific request if (ui.item.states) { jQuery("#departement_id").html(ui.item.states); }