From 934269df3127f6880c9d56219043f4379b3c8a36 Mon Sep 17 00:00:00 2001 From: Owen Leonard 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 Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers --- 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 7b2ba63aac..507f3d15f4 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.39.5