From 74bef99916e5f1662f147d7115d759e44a0df7d4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 4 Nov 2022 13:30:24 +0100 Subject: [PATCH] Bug 32111: Remove disabled from date input for curbside pickup The date input is always disabled and it's not possible to select or enter a date. git bisect blames "Bug 30718: Apply flatpickr changes to OPAC" and "altInput: true" I don't really know what's happening here, but it's impossible to interact with the date widget if the input is disabled when it's initialized. The solution I have here is to play with hide/show instead of disabled. Other suggestions welcome. Test plan: Schedule a curbside pickup from the OPAC and confirm that the date input is working as expected. Signed-off-by: David Nind Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../bootstrap/en/modules/opac-curbside-pickups.tt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt index 3760c79b30..26b892d198 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt @@ -243,7 +243,7 @@
  • - +
    Required
  • @@ -343,12 +343,10 @@ if (existing_pickup) { $('#existing-pickup-warning').show(); - $("#pickup_date_item,#pickup_notes_item").hide(); - $('#pickup-date').prop("disabled", true); + $("#pickup-date,#pickup_date_item,#pickup_notes_item").hide(); } else { $('#existing-pickup-warning').hide(); - $("#pickup_date_item").show(); - $('#pickup-date').prop("disabled", branchcode == ""); + $("#pickup-date,#pickup_date_item").show(); } }); -- 2.39.5