From d9985ea07280e7cb3c1182f4e871b46e8f96f5e2 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 --- 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