user auto disable word listening

improve card creation
mobileapi - add ticket usage count
This commit is contained in:
Schneider Roland
2023-07-04 17:42:26 +02:00
parent 5016d8802c
commit 01fc54f7b5
3 changed files with 115 additions and 99 deletions

View File

@@ -16,7 +16,7 @@ $(document).ready(
addDocumentKeypressedListener();
}
);
//10WMVXMZ
function addDocumentKeypressedListener(){
$( document ).keypress(function( event ) {
@@ -43,9 +43,13 @@ function addDocumentKeypressedListener(){
console.info("isWordTypedListenerAllowedOnlyForEmptyCustomer",isWordTypedListenerAllowedOnlyForEmptyCustomer);
if ( word && word.length > 0){
var redirectAllowed = userKeyListenerEnabled == 1;
console.info("word typed",data.word)
if ( redirectAllowed){
console.info("redirect allowed");
location.href= reception_card_url +'&number=' + word;
}else {
console.info("redirect disabled");
}