Bugzilla – Attachment 127101 Details for
Bug 29369
Use Flatpickr in dateaccessioned cataloging plugin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29369: Use Flatpickr in dateaccessioned cataloging plugin
Bug-29369-Use-Flatpickr-in-dateaccessioned-catalog.patch (text/plain), 1.61 KB, created by
David Nind
on 2021-10-29 17:50:05 UTC
(
hide
)
Description:
Bug 29369: Use Flatpickr in dateaccessioned cataloging plugin
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-10-29 17:50:05 UTC
Size:
1.61 KB
patch
obsolete
>From e7ef238e98a549175827bd795aab281ad62d4501 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 29 Oct 2021 10:47:03 +0000 >Subject: [PATCH] Bug 29369: Use Flatpickr in dateaccessioned cataloging plugin > >This patch udpates the dateaccessioned cataloging plugin to use the >Flatpickr date picker instead of jQueryUI. > >To test, apply the patch and open an item for editing in Cataloging. > >- The date acquired field (952$d) should have flatpickr styling. >- Clicking in the field should populate the field with today's date and > trigger the calendar popup. >- Clicking the "..." next to the field should populate the field (when > empty) with today's date. >- Verify that tabbing from a different field into the date acquired > field behaves the same as a click. > >Signed-off-by: David Nind <david@davidnind.com> >--- > cataloguing/value_builder/dateaccessioned.pl | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > >diff --git a/cataloguing/value_builder/dateaccessioned.pl b/cataloguing/value_builder/dateaccessioned.pl >index 1ce91e55f6..9d7da193c7 100755 >--- a/cataloguing/value_builder/dateaccessioned.pl >+++ b/cataloguing/value_builder/dateaccessioned.pl >@@ -34,15 +34,13 @@ my $builder = sub { > /* from: cataloguing/value_builder/dateaccessioned.pl */ > > \$(document).ready(function(){ >- \$("#$function_name").datepicker({ >- dateFormat: "yy-mm-dd" >+ \$("#$function_name").flatpickr({ >+ dateFormat: "Y-m-d" > }); > }); > > function Focus$function_name(event) { > set_to_today(event.data.id); >- \$("#$function_name").datepicker("show"); >- > } > > function Click$function_name(event) { >-- >2.20.1
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 29369
:
127092
|
127101
|
127114