Merge pull request #12786 from andreubisquerra/master

TakePOS press 'ENTER' event
This commit is contained in:
Laurent Destailleur 2020-01-03 20:41:41 +01:00 committed by GitHub
commit d5ad0180a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -434,6 +434,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) {