Bugzilla – Attachment 138658 Details for
Bug 30718
Use flatpickr's altInput option everywhere
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30718: Apply flatpickr changes to OPAC
Bug-30718-Apply-flatpickr-changes-to-OPAC.patch (text/plain), 1.65 KB, created by
Jonathan Druart
on 2022-08-05 09:11:00 UTC
(
hide
)
Description:
Bug 30718: Apply flatpickr changes to OPAC
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-08-05 09:11:00 UTC
Size:
1.65 KB
patch
obsolete
>From 5139d76be84c8f08a5bb3c291877966285a75a4b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 5 Aug 2022 11:10:42 +0200 >Subject: [PATCH] Bug 30718: Apply flatpickr changes to OPAC > >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc >index 1ef4ffb6111..17aafe7c137 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc >@@ -52,8 +52,10 @@ > flatpickr.l10ns.default.weekdays = flatpickr_weekdays; > flatpickr.l10ns.default.months = flatpickr_months; > flatpickr.setDefaults({ >- allowInput: true, >- dateFormat: flatpickr_dateformat_string, >+ dateFormat: "Y-m-d", >+ altInput: true, >+ altFormat: flatpickr_dateformat_string, >+ altInputClass: 'flatpickr-input', > nextArrow: '<i class="fa fa-fw fa-arrow-right" aria-hidden="true"></i>', > prevArrow: '<i class="fa fa-fw fa-arrow-left" aria-hidden="true"></i>', > time_24hr: flatpickr_timeformat, >@@ -68,7 +70,7 @@ > if( $(instance.input).hasClass("pastdate") ){ > instance.set("maxDate", new Date().fp_incr(-1)); > } >- $(instance.input) >+ $(instance.input).siblings('input.flatpickr') > /* Add a wrapper element so that we can prevent the clear button from wrapping */ > .wrap("<span class='flatpickr_wrapper'></span>") > .after( $("<a/>") >-- >2.25.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 30718
:
135487
|
137516
|
137707
|
137715
|
137803
|
137804
|
137805
|
137806
|
137807
|
137868
|
137869
|
138644
|
138645
|
138646
|
138647
|
138648
|
138649
|
138650
|
138651
|
138652
|
138658
|
138659
|
138748
|
138749
|
138750
|
138751
|
138752
|
138753
|
138754
|
138755
|
138756
|
138757
|
138758
|
138879
|
138980
|
139033
|
139073
|
139074
|
139075
|
139076
|
139077
|
139078
|
139079
|
139080
|
139081
|
139082
|
139083
|
139084
|
139085
|
139453
|
139454
|
139455
|
139456
|
139457
|
139458
|
139459
|
139460
|
139461
|
139462
|
139463
|
139464
|
139465
|
139466
|
139467
|
139468
|
139490
|
139605
|
143175