mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
fix: currentTime can't be null for inline mode; remove unused throttle var
This commit is contained in:
parent
16a1beeef3
commit
822827f439
@ -925,8 +925,7 @@
|
|||||||
setPos,
|
setPos,
|
||||||
timer = 0,
|
timer = 0,
|
||||||
_xdsoft_datetime,
|
_xdsoft_datetime,
|
||||||
forEachAncestorOf,
|
forEachAncestorOf;
|
||||||
throttle;
|
|
||||||
|
|
||||||
if (options.id) {
|
if (options.id) {
|
||||||
datetimepicker.attr('id', options.id);
|
datetimepicker.attr('id', options.id);
|
||||||
@ -1286,7 +1285,7 @@
|
|||||||
else if (_this.isValidDate(dTime)) {
|
else if (_this.isValidDate(dTime)) {
|
||||||
_this.currentTime = dTime;
|
_this.currentTime = dTime;
|
||||||
}
|
}
|
||||||
else if (!dTime && !requireValidDate && options.allowBlank) {
|
else if (!dTime && !requireValidDate && options.allowBlank && !options.inline) {
|
||||||
_this.currentTime = null;
|
_this.currentTime = null;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user