From 98bb1fe5deed959ef9b020b2a8e25712eacb2d4f 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 Signed-off-by: David Nind --- .../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 2f9d0be1ff..d7be8f2761 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.39.5