From 83f542de19eebc4fbc2716cca99ffdcea67c20bd Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 23 Sep 2024 12:07:20 +0200 Subject: [PATCH] Bug 37983: Restore auto-focus on patron input when "Schedule a pickup" is selected In the curbside pickup module, when the "Schedule a pickup" tab is selected we expect the patron search box to get the focus. But it has been broken bug 30965 (which changed the id of the input). Test plan: Setup curbside pickup for your library Go to Circulation > Curbside pickups Click the last tab Notice that you can directly search for a patron, the input has the focus Signed-off-by: Phil Ringnalda Signed-off-by: Lucas Gass Signed-off-by: Martin Renvoize --- .../intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 439684bee4..ac3c0d3182 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 @@ -546,7 +546,7 @@ $(document).ready(function() { $('#schedule-pickup-tab').on('click', function() { - $('#input-patron-cardnumber').focus(); + $('#find-patron').focus(); }); const pickup_date = document.querySelector("#pickup_date"); -- 2.39.5