2
0
forked from Wavyzz/dolibarr

Test: search company with jQuery

This commit is contained in:
Regis Houssin
2010-10-08 14:15:21 +00:00
parent 1b05bb9686
commit 1af2a5025f
4 changed files with 13 additions and 6 deletions

View File

@@ -94,8 +94,8 @@ function ajax_autocompleter($selected='',$htmlname,$value,$url,$indicator='worki
source: "'.$url.'",
minLength: 2,
select: function( event, ui ) {
jQuery("#'.$htmlname.'").val(ui.item.value);
jQuery("#'.$value.'").val(ui.item.id);
jQuery("#'.$htmlname.'").val(ui.item.socname);
jQuery("#'.$value.'").val(ui.item.socid);
}
});
});';