Correction clearSearchResults

This commit is contained in:
melina 2023-02-07 11:36:43 +01:00
parent 706af6f7f4
commit ab4c4f24cc

View file

@ -211,7 +211,7 @@ function ClearSearch(clearSearchResults) {
<?php if ($conf->browser->layout == 'classic') { ?>
setFocusOnSearchField();
<?php } ?>
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