update to jquery.datetimepicker.full.js to allow for times in a specific date to be disabled

This commit is contained in:
Thom 2017-06-24 22:10:53 -04:00
parent 1525c13027
commit 5e0bdac3ac

View File

@ -2340,6 +2340,9 @@ var DateFormatter;
optionDateTime.setHours(h);
optionDateTime.setMinutes(m);
classes = [];
if (options.disabledDates.indexOf(dateHelper.formatDate(optionDateTime, options.formatDate)) !== -1) {
classes.push('xdsoft_disabled');
}
if ((options.minDateTime !== false && options.minDateTime > optionDateTime) || (options.maxTime !== false && _xdsoft_datetime.strtotime(options.maxTime).getTime() < now.getTime()) || (options.minTime !== false && _xdsoft_datetime.strtotime(options.minTime).getTime() > now.getTime())) {
classes.push('xdsoft_disabled');
} else if ((options.minDateTime !== false && options.minDateTime > optionDateTime) || ((options.disabledMinTime !== false && now.getTime() > _xdsoft_datetime.strtotime(options.disabledMinTime).getTime()) && (options.disabledMaxTime !== false && now.getTime() < _xdsoft_datetime.strtotime(options.disabledMaxTime).getTime()))) {