From b43bf56025d3413a87fb63786d3d5c3521df9389 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 --- .../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.30.2