Bugzilla – Attachment 189149 Details for
Bug 41200
Refocus certain elements on hide or remove
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41200: Refocuses browse results after closure
Bug-41200-Refocuses-browse-results-after-closure.patch (text/plain), 1.43 KB, created by
Jake Deery
on 2025-11-06 09:08:40 UTC
(
hide
)
Description:
Bug 41200: Refocuses browse results after closure
Filename:
MIME Type:
Creator:
Jake Deery
Created:
2025-11-06 09:08:40 UTC
Size:
1.43 KB
patch
obsolete
>From bf920c4444e53db464508df6151247d6af83078b Mon Sep 17 00:00:00 2001 >From: Jake Deery <jake.deery@openfifth.co.uk> >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)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41200
:
189148
| 189149