From 8cb707f1e52d006f3e0de7c5cde5d31ebd53dec8 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 --- 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