Bug 29552: Disable today for dates in the future
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
934269df31
commit
d9985ea072
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue