From bf920c4444e53db464508df6151247d6af83078b Mon Sep 17 00:00:00 2001 From: Jake Deery Date: Thu, 2 Oct 2025 12:47:13 +0000 Subject: [PATCH] Bug 41200: Refocuses browse results after closure This patch resolves to fix missing focus that happens when the close button is used within the browse results widget on the details page == TO TEST == a) search for history, and choose any record from the results page b) notice the browse results widget on the right - click browse results c) click close d) try to tab into the next item, notice how the focus caret goes missing == APPLY PATCH == e) repeat steps a-c f) notice how this time the focus returns to browse results == SIGN OFF == --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 0c85fbb7353..a6298b5b41f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1910,6 +1910,7 @@ $(".close_pagination").on("click", function(e){ e.preventDefault(); $(".results-pagination, .close_pagination, .pg_menu").toggle(); + $("#a_listResults").focus(); }); [% END # /IF OpacBrowseResults %] -- 2.50.1 (Apple Git-155)