If press enter add automatically the product. Widely used with barcodes.
This commit is contained in:
parent
90a78267c5
commit
e005416189
@ -426,6 +426,7 @@ function New() {
|
|||||||
|
|
||||||
function Search2() {
|
function Search2() {
|
||||||
console.log("Search2 Call ajax search to replace products");
|
console.log("Search2 Call ajax search to replace products");
|
||||||
|
if(window.event.keyCode == 13) ClickProduct(0);
|
||||||
pageproducts=0;
|
pageproducts=0;
|
||||||
jQuery(".wrapper2 .catwatermark").hide();
|
jQuery(".wrapper2 .catwatermark").hide();
|
||||||
$.getJSON('<?php echo DOL_URL_ROOT ?>/takepos/ajax/ajax.php?action=search&term='+$('#search').val(), function(data) {
|
$.getJSON('<?php echo DOL_URL_ROOT ?>/takepos/ajax/ajax.php?action=search&term='+$('#search').val(), function(data) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user