From def296496436883b1cf5e3f4eb845b0b80f31b4f Mon Sep 17 00:00:00 2001 From: Shi Yao Wang Date: Wed, 6 Apr 2022 12:53:20 -0400 Subject: [PATCH] Bug 27113: Focus the input after selecting "Search the catalog" Small fix to focus the input after clicking "Search the catalog" in staff interface. --- koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js index 76d3b4c7d0..6c88eb0150 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js +++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js @@ -88,6 +88,7 @@ $(document).ready(function() { if (typeof AutocompleteInitIntranet !== "undefined" && tab === 'catalog_search' ){ AutocompleteInitIntranet(); } + $("#search-form").focus(); }); $(".toggle_element").on("click",function(e){ -- 2.25.1