From 7113cff075a8b1aea395a90acf5fdbc6d16f3f00 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. --- .../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 8c557f7fdd8..4ecab4dce18 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.34.1