Fixed undefined dp_inst.lastVal
This commit is contained in:
parent
b4c322c657
commit
ba5abba099
5
README
5
README
|
@ -0,0 +1,5 @@
|
||||||
|
jQuery Timepicker Addon
|
||||||
|
|
||||||
|
-To use this plugin you must include jQuery and jQuery UI with datepicker
|
||||||
|
-Include timepicker-addon script
|
||||||
|
-now use timepicker with $('#selector').datetimepicker() or $('#selector').timepicker()
|
2
jquery-ui-timepicker-addon.js
vendored
2
jquery-ui-timepicker-addon.js
vendored
|
@ -549,7 +549,7 @@
|
||||||
var formattedDateTime = this.formattedDate;
|
var formattedDateTime = this.formattedDate;
|
||||||
var timeAvailable = ((dt !== null && tp_inst.timeDefined) !== true)? false : true;
|
var timeAvailable = ((dt !== null && tp_inst.timeDefined) !== true)? false : true;
|
||||||
|
|
||||||
if (dp_inst.lastVal.length > 0 && this.$input.val().length === 0) {
|
if (dp_inst.lastVal !== null && (dp_inst.lastVal.length > 0 && this.$input.val().length === 0)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue