From 817faacd749ec1c3dcace7a9a71eacb223922a88 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sat, 16 Nov 2024 08:14:52 +0100 Subject: [PATCH] Bug 37761: Add focus on patron search when on the tab --- .../intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt index 2f9d0be1ff5..d7be8f2761d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt @@ -529,6 +529,10 @@ $('#find-patron').focus(); }); + [% IF tab == 'schedule-pickup_panel' %] + $('#find-patron').focus(); + [% END %] + const pickup_date = document.querySelector("#pickup_date"); if ( pickup_date ) { const fp = pickup_date._flatpickr; -- 2.34.1