Bugzilla – Attachment 128807 Details for
Bug 29552
flatpickr quick shortcuts should be 'Disabled' for invalid dates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29552: (follow-up) Use CSS to set disabled class
Bug-29552-follow-up-Use-CSS-to-set-disabled-class.patch (text/plain), 1.81 KB, created by
Katrin Fischer
on 2021-12-20 23:30:17 UTC
(
hide
)
Description:
Bug 29552: (follow-up) Use CSS to set disabled class
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2021-12-20 23:30:17 UTC
Size:
1.81 KB
patch
obsolete
>From 81062733a98ca4149f8d44f8774b351c4a4c6df0 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 3 Dec 2021 14:40:41 +0000 >Subject: [PATCH] Bug 29552: (follow-up) Use CSS to set disabled class > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > koha-tmpl/intranet-tmpl/prog/css/src/_flatpickr.scss | 8 ++++++++ > koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc | 2 +- > 2 files changed, 9 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/_flatpickr.scss b/koha-tmpl/intranet-tmpl/prog/css/src/_flatpickr.scss >index 85c4e96f8f..34d1ce6ffe 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/_flatpickr.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/_flatpickr.scss >@@ -990,6 +990,14 @@ span.flatpickr-weekday { > font-size: 90%; > margin: 2px; > >+ &:disabled { >+ color: #999; >+ >+ &:hover { >+ color: #999; >+ } >+ } >+ > &:hover { > color: #538200; > } >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >index 8d3f4ee4ec..f7e78db23b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc >@@ -164,7 +164,7 @@ > let fp = $(this).flatpickr(options); > > $(disable_buttons).each(function(index, value){ >- $(fp.calendarContainer).find(".shortcut-buttons-flatpickr-button[data-index='"+value+"']").prop("disabled", "disabled").css("color", "#999"); >+ $(fp.calendarContainer).find(".shortcut-buttons-flatpickr-button[data-index='"+value+"']").prop("disabled", "disabled"); > }); > > if ( refresh_max_date ) { >-- >2.11.0
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 29552
:
127954
|
128221
|
128222
|
128510
|
128511
|
128512
|
128729
|
128806
|
128807
|
128808
|
128809
|
128810
|
128811