Fixed undefined dp_inst.lastVal

This commit is contained in:
Trent Richardson 2010-11-15 14:25:18 -05:00
parent b4c322c657
commit ba5abba099
2 changed files with 6 additions and 1 deletions

5
README
View file

@ -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()

View file

@ -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;
} }