New version 2.5.14

This commit is contained in:
Chupurnov Valeriy 2017-11-21 18:12:07 +05:00
parent c6816386e4
commit 643102de40
3 changed files with 17 additions and 7 deletions

View File

@ -1669,17 +1669,27 @@ var datetimepickerFactory = function ($) {
if(!options.allowDateRe.test(dateHelper.formatDate(start, options.formatDate))){
classes.push('xdsoft_disabled');
}
} else if(options.allowDates && options.allowDates.length>0){
}
if(options.allowDates && options.allowDates.length>0){
if(options.allowDates.indexOf(dateHelper.formatDate(start, options.formatDate)) === -1){
classes.push('xdsoft_disabled');
}
} else if ((maxDate !== false && start > maxDate) || (minDateTime !== false && start < minDateTime) || (minDate !== false && start < minDate) || (customDateSettings && customDateSettings[0] === false)) {
}
if ((maxDate !== false && start > maxDate) || (minDateTime !== false && start < minDateTime) || (minDate !== false && start < minDate) || (customDateSettings && customDateSettings[0] === false)) {
classes.push('xdsoft_disabled');
} else if (options.disabledDates.indexOf(dateHelper.formatDate(start, options.formatDate)) !== -1) {
}
if (options.disabledDates.indexOf(dateHelper.formatDate(start, options.formatDate)) !== -1) {
classes.push('xdsoft_disabled');
} else if (options.disabledWeekDays.indexOf(day) !== -1) {
}
if (options.disabledWeekDays.indexOf(day) !== -1) {
classes.push('xdsoft_disabled');
}else if (input.is('[disabled]')) {
}
if (input.is('[disabled]')) {
classes.push('xdsoft_disabled');
}

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "jquery-datetimepicker",
"version": "2.5.13",
"version": "2.5.14",
"description": "jQuery Plugin DateTimePicker it is DatePicker and TimePicker in one",
"main": "build/jquery.datetimepicker.full.min.js",
"scripts": {