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