From b89c6940cf3a6a5ed31e1927edb566b86cac43e1 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 4 Mar 2024 18:19:30 +0000 Subject: [PATCH] Bug 33703: Add Maskito to dateaccessioned.pl Signed-off-by: Martin Renvoize Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer --- cataloguing/value_builder/dateaccessioned.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cataloguing/value_builder/dateaccessioned.pl b/cataloguing/value_builder/dateaccessioned.pl index c4f7746b7f..f9a7bd8758 100755 --- a/cataloguing/value_builder/dateaccessioned.pl +++ b/cataloguing/value_builder/dateaccessioned.pl @@ -42,9 +42,14 @@ my $builder = sub { \$(document).ready(function(){ \$("#$function_name").flatpickr({ onOpen: function(selectedDates, dateStr, instance) { + let options = maskitoDateOptionsGenerator({ + mode: altinput_dateformat, + separator: delimiter, + }); if (dateStr == '') { instance.setDate(new Date()); } + new Maskito( instance.altInput, options ); } }); }); -- 2.39.5