Bugzilla – Attachment 169137 Details for
Bug 37371
Direct input of dates not working when editing only part of a date
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37371: Move Maskito init to onReady in dateaccessioned.pl
Bug-37371-Move-Maskito-init-to-onReady-in-dateacce.patch (text/plain), 1.37 KB, created by
Owen Leonard
on 2024-07-18 14:24:52 UTC
(
hide
)
Description:
Bug 37371: Move Maskito init to onReady in dateaccessioned.pl
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2024-07-18 14:24:52 UTC
Size:
1.37 KB
patch
obsolete
>From 45963af08bd6f24db4b8c69e3f943615648e31a5 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Wed, 17 Jul 2024 14:58:14 +0000 >Subject: [PATCH] Bug 37371: Move Maskito init to onReady in dateaccessioned.pl > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > cataloguing/value_builder/dateaccessioned.pl | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/cataloguing/value_builder/dateaccessioned.pl b/cataloguing/value_builder/dateaccessioned.pl >index f9a7bd8758..65c806b29c 100755 >--- a/cataloguing/value_builder/dateaccessioned.pl >+++ b/cataloguing/value_builder/dateaccessioned.pl >@@ -41,15 +41,19 @@ my $builder = sub { > > \$(document).ready(function(){ > \$("#$function_name").flatpickr({ >- onOpen: function(selectedDates, dateStr, instance) { >+ onReady: function(selectedDates, dateStr, instance) { > let options = maskitoDateOptionsGenerator({ > mode: altinput_dateformat, > separator: delimiter, >+ overwriteMode: 'replace', > }); >+ >+ new Maskito( instance.altInput, options ); >+ }, >+ onOpen: function(selectedDates, dateStr, instance) { > if (dateStr == '') { > instance.setDate(new Date()); > } >- new Maskito( instance.altInput, options ); > } > }); > }); >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37371
:
169083
|
169085
|
169086
|
169087
|
169088
|
169094
|
169135
|
169136
|
169137
|
169138
|
169151
|
169152
|
169153
|
169154