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> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
3bc141ae7d
commit
c2054efff2
1 changed files with 2 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue