Bugzilla – Attachment 166163 Details for
Bug 36774
Flatpickr clear() adds unintentional clear button
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36774: Dont add wrapper if already exists
Bug-36774-Dont-add-wrapper-if-already-exists.patch (text/plain), 1.18 KB, created by
David Nind
on 2024-05-04 20:32:41 UTC
(
hide
)
Description:
Bug 36774: Dont add wrapper if already exists
Filename:
MIME Type:
Creator:
David Nind
Created:
2024-05-04 20:32:41 UTC
Size:
1.18 KB
patch
obsolete
>From 638158f4c7519c3be62efa18d13ed5b19e2cd489 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Fri, 3 May 2024 14:07:25 +0000 >Subject: [PATCH] Bug 36774: Dont add wrapper if already exists > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >index 62a7059b09..4aa7b43151 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >@@ -61,6 +61,11 @@ > }, > onReady: function( selectedDates, dateStr, instance ){ > /* When flatpickr instance is created, automatically append a "clear date" link */ >+ >+ if( $(instance.input).parent().find('.flatpickr_wrapper').length ){ >+ return; >+ } >+ > $(instance.input).find('~input.flatpickr:first') > /* Add a wrapper element so that we can prevent the clear button from wrapping */ > .wrap("<span class='flatpickr_wrapper'></span>") >-- >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 36774
:
166138
|
166139
|
166162
|
166163
|
166278
|
166303
|
166304
|
166305
|
166383
|
166384
|
166385
|
166395
|
166396
|
166423
|
166424
|
166425
|
166427
|
166463
|
166464