If press enter add automatically the product. Widely used with barcodes.

This commit is contained in:
andreubisquerra 2020-01-01 21:19:23 +01:00
parent 90a78267c5
commit e005416189

View File

@ -426,6 +426,7 @@ function New() {
function Search2() {
console.log("Search2 Call ajax search to replace products");
if(window.event.keyCode == 13) ClickProduct(0);
pageproducts=0;
jQuery(".wrapper2 .catwatermark").hide();
$.getJSON('<?php echo DOL_URL_ROOT ?>/takepos/ajax/ajax.php?action=search&term='+$('#search').val(), function(data) {