Merge pull request #14367 from andreubisquerra/master

Improve TakePOS search on click ENTER
This commit is contained in:
Laurent Destailleur 2020-08-04 11:52:36 +02:00 committed by GitHub
commit 615995476b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -529,8 +529,19 @@ function Search2(keyCodeForEnter) {
ClickProduct(0);
}
}
if (eventKeyCode == keyCodeForEnter){
if (data.length == 0) {
$('#search').val('<?php
$langs->load('errors');
echo dol_escape_js($langs->trans("ErrorRecordNotFound"));
?>');
$('#search').select();
}
else ClearSearch();
}
});
}
}
function Edit(number) {