user auto disable word listening
improve card creation mobileapi - add ticket usage count
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user