mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-09 09:22:36 +01:00
fix takepos console error (#34709)
* fix console error * exit early --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
@@ -711,7 +711,15 @@ function New() {
|
||||
* return void
|
||||
*/
|
||||
function Search2(keyCodeForEnter, moreorless) {
|
||||
var eventKeyCode = window.event.keyCode;
|
||||
var eventKeyCode = null;
|
||||
|
||||
if (window.event && window.event.keyCode) {
|
||||
eventKeyCode = window.event.keyCode;
|
||||
}
|
||||
if (eventKeyCode === null && keyCodeForEnter !== '') {
|
||||
// No key code available, exit early if a key code is required
|
||||
return;
|
||||
}
|
||||
|
||||
console.log("Search2 Call ajax search to replace products keyCodeForEnter="+keyCodeForEnter+", eventKeyCode="+eventKeyCode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user