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); }