From 7e5a2f5a4d7b955be5c16f0367ff89729f8ce831 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 4 Sep 2024 14:50:47 +0200 Subject: [PATCH] Bug 35838: Fix addition of new slots The "Add" button didn't add new slots. Signed-off-by: Katrin Fischer --- .../intranet-tmpl/prog/en/modules/admin/curbside_pickup.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/curbside_pickup.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/curbside_pickup.tt index 8c557f7fdd..4ecab4dce1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/curbside_pickup.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/curbside_pickup.tt @@ -226,7 +226,7 @@ slots_per_day[day].push(slot); }); - $("#conf-"+branchcode).find(".pickup_hours li").remove(); + $("#conf-"+branchcode+"_panel").find(".pickup_hours li").remove(); const CalendarFirstDayOfWeek = [% Koha.Preference("CalendarFirstDayOfWeek") || 0 | html %]; [0, 1, 2, 3, 4, 5, 6] @@ -244,7 +244,7 @@ span_node.appendTo(li_node); }); - li_node.appendTo($("#conf-"+branchcode).find(".pickup_hours")); + li_node.appendTo($("#conf-"+branchcode+"_panel").find(".pickup_hours")); }); } function get_day_lib(day){ -- 2.39.5