Bugzilla – Attachment 166305 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: (QA Follow-up): Use flatpickr clear
Bug-36774-QA-Follow-up-Use-flatpickr-clear.patch (text/plain), 1.17 KB, created by
Pedro Amorim
on 2024-05-07 16:08:48 UTC
(
hide
)
Description:
Bug 36774: (QA Follow-up): Use flatpickr clear
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-05-07 16:08:48 UTC
Size:
1.17 KB
patch
obsolete
>From 34aba6d42977da88ee5f27937d79479d3957b718 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Tue, 7 May 2024 15:45:39 +0000 >Subject: [PATCH] Bug 36774: (QA Follow-up): Use flatpickr clear > >Im not sure why, but with the way it was before, there was a bug in my test plan. >If you cleared using the TEST link, and then input some date and clear with the 'x', a JS error would occurr. >--- > koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >index c343e5e5df..83a7432f7a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >@@ -75,7 +75,7 @@ > .addClass("clear_date") > .on("click", function(e){ > e.preventDefault(); >- instance.clear(); >+ instance.input.flatpickr().clear(); > }) > .addClass("fa fa-fw fa-times") > .attr("aria-hidden", true) >-- >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