Bugzilla – Attachment 169086 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.29 KB, created by
Lucas Gass (lukeg)
on 2024-07-17 14:59:17 UTC
(
hide
)
Description:
Bug 37371: Move Maskito init to onReady in dateaccessioned.pl
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2024-07-17 14:59:17 UTC
Size:
1.29 KB
patch
obsolete
>From b53a20aeed4f51c38c736ec539ac50955cfa86ae 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 > >--- > cataloguing/value_builder/dateaccessioned.pl | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > >diff --git a/cataloguing/value_builder/dateaccessioned.pl b/cataloguing/value_builder/dateaccessioned.pl >index f9a7bd8758..84e55487cf 100755 >--- a/cataloguing/value_builder/dateaccessioned.pl >+++ b/cataloguing/value_builder/dateaccessioned.pl >@@ -42,13 +42,17 @@ my $builder = sub { > \$(document).ready(function(){ > \$("#$function_name").flatpickr({ > onOpen: function(selectedDates, dateStr, instance) { >+ if (dateStr == '') { >+ instance.setDate(new Date()); >+ } >+ }, >+ onChange: function(selectedDates, dateStr, instance) { > let options = maskitoDateOptionsGenerator({ > mode: altinput_dateformat, > separator: delimiter, >+ overwriteMode: 'replace', > }); >- 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