Bugzilla – Attachment 169771 Details for
Bug 37373
Cursor should go to patron search box on loading holds page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37373: [Alternate] Combine duplicate class attributes
Bug-37373-Alternate-Combine-duplicate-class-attrib.patch (text/plain), 2.52 KB, created by
Andrew Fuerste-Henry
on 2024-07-26 18:29:45 UTC
(
hide
)
Description:
Bug 37373: [Alternate] Combine duplicate class attributes
Filename:
MIME Type:
Creator:
Andrew Fuerste-Henry
Created:
2024-07-26 18:29:45 UTC
Size:
2.52 KB
patch
obsolete
>From 52dcbdbbced109af5f2ab521575757ce67f02aca Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 26 Jul 2024 16:32:12 +0000 >Subject: [PATCH] Bug 37373: [Alternate] Combine duplicate class attributes > >This patch corrects two instances in patron-search.inc where there were >two class attributes on one input. Combining the two class names under >one class attribute seems to fix the focus problem. > >The patch also updates the global JS giving focus to elements with a >"focus" class so that it only targets elements which are visible. This >prevents the browser from trying to put focus on a field in a hidden >modal. > >Signed-off-by: Andrew Fuerste Henry <andrewfh@dubcolib.org> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 4 ++-- > koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 3 ++- > 2 files changed, 4 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >index 0956c118e0..5b2e3f23a3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -13,7 +13,7 @@ > [% BLOCK patron_search_filters_simple %] > <form method="get" class="patron_search_form"> > <div class="hint">Enter patron card number or partial name:</div> >- <input type="text" size="40" class="search_patron_filter" class="focus" autocomplete="off" /> >+ <input type="text" size="40" class="search_patron_filter focus" autocomplete="off" /> > <input type="submit" class="btn btn-primary" value="Search" /> > </form> > [% END %] >@@ -36,7 +36,7 @@ > <ol> > <li> > <label>Search:</label> >- <input type="text" class="search_patron_filter" value="[% search_filter | html %]" class="focus" /> >+ <input type="text" class="search_patron_filter focus" value="[% search_filter | html %]" /> > </li> > > [% FOR f IN filters %] >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index 874c3fbebb..46bb938918 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -132,7 +132,8 @@ $(document).ready(function () { > } > }); > >- $(".focus").focus(); >+ $(".focus:visible").focus(); >+ > $(".validated").each(function () { > $(this).validate(); > }); >-- >2.39.2
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 37373
:
169616
|
169764
|
169770
|
169771
|
169790
|
170145