mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Todo: move this to specific request with other change if other country
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user