#453 Setting input as readonly still allows the user to use the datetimepicker UI

This commit is contained in:
MengtiSun 2016-12-07 10:36:38 +11:00 committed by GitHub
parent ec0865991d
commit 663a9461fc

View File

@ -1636,7 +1636,7 @@
classes.push('xdsoft_disabled');
} else if (options.disabledWeekDays.indexOf(day) !== -1) {
classes.push('xdsoft_disabled');
}else if (input.is('[readonly]')) {
}else if (input.is('[disabled]')) {
classes.push('xdsoft_disabled');
}
@ -1716,7 +1716,7 @@
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()))) {
classes.push('xdsoft_disabled');
} else if (input.is('[readonly]')) {
} else if (input.is('[disabled]')) {
classes.push('xdsoft_disabled');
}