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