From ab4c4f24ccf46ce99fa59bafb4970ae6551130d1 Mon Sep 17 00:00:00 2001 From: melina Date: Tue, 7 Feb 2023 11:36:43 +0100 Subject: [PATCH] Correction clearSearchResults --- htdocs/takepos/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/takepos/index.php b/htdocs/takepos/index.php index f10df7d9c79..7932b5dd388 100644 --- a/htdocs/takepos/index.php +++ b/htdocs/takepos/index.php @@ -211,7 +211,7 @@ function ClearSearch(clearSearchResults) { browser->layout == 'classic') { ?> setFocusOnSearchField(); - if (typeof clearSearchResults != "undefined") $("#search").trigger('keyup'); + if (clearSearchResults) $("#search").trigger('keyup'); } // Set the focus on search field but only on desktop. On tablet or smartphone, we don't to avoid to have the keyboard open automatically