From 4b5c33d6b10bf7d48cf3e885cddc84d6c83c7d46 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 20 Dec 2021 11:44:24 +0100 Subject: [PATCH] Bug 29552: Disable today for dates in the future Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers Signed-off-by: Kyle M Hall --- koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc index 507f3d15f4..38e16b8a09 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc @@ -145,6 +145,7 @@ options['minDate'] = new Date().fp_incr(1); } disable_buttons.push(0); /* Yesterday */ + disable_buttons.push(1); /* Today */ } if( $(this).data("flatpickr-pastinclusive") === true ) { options['maxDate'] = new Date(); /* Not today or hh:mm will be 00:00 */ -- 2.39.5