arian/mootools-datepicker — Issue #86: maxDate option is not working
Author: eric-bonnot
Created: 2011-11-06 20:01:57+00:00
State: open

Hello,

The maxDate parameter is not working. I tried with a new Date() or a string, but it is not working in both cases.

The bug is on line 648 of Picker.Date.js.

Code is: var dateAllow = (minDate && date < minDate) || (minDate && date > maxDate);
But should be: var dateAllow = (minDate && date < minDate) || (maxDate && date > maxDate);

Eric