2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Laurent Destailleur
2020-12-08 20:53:42 +01:00
parent 769a8886b9
commit c26efd756f

View File

@@ -68,6 +68,7 @@ function ajax_autocompleter($selected, $htmlname, $url, $urloption = '', $minLen
$("input#search_'.$htmlname.'").keydown(function(e) {
if (e.keyCode != 9) /* If not "Tab" key */
{
if (e.keyCode == 13) { return false; } /* disable "ENTER" key useful for barcode readers */
console.log("Clear id previously selected for field '.$htmlname.'");
$("#'.$htmlname.'").val("");
}