From c274b75e7d2ad7325da63ec5b8e95eb9e6ae4608 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 --- 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 f7e78db23b..1a29e4cbad 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.11.0