From 25fd07daa40316e24a5dea2698246b2d66193d8b 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 f7e78db23ba..1a29e4cbad5 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.25.1