From 5e0bdac3acbf7f0969a3dfc8584c2570942498e7 Mon Sep 17 00:00:00 2001 From: Thom Date: Sat, 24 Jun 2017 22:10:53 -0400 Subject: [PATCH] update to jquery.datetimepicker.full.js to allow for times in a specific date to be disabled --- build/jquery.datetimepicker.full.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/jquery.datetimepicker.full.js b/build/jquery.datetimepicker.full.js index 9740621..46db866 100644 --- a/build/jquery.datetimepicker.full.js +++ b/build/jquery.datetimepicker.full.js @@ -4,7 +4,7 @@ * * Date formatter utility library that allows formatting date/time variables or Date objects using PHP DateTime format. * This library is a standalone javascript library and does not depend on other libraries or plugins like jQuery. - * + * * @see http://php.net/manual/en/function.date.php * * For more JQuery plugins visit http://plugins.krajee.com @@ -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()))) {