Preventing setting defaultDate on an empty input to set an (incorrect) input value.

This commit is contained in:
Bruno Harbulot 2011-03-13 20:27:16 +00:00
parent caf2916169
commit cc80af42fe

View file

@ -908,9 +908,9 @@ $.datepicker._setTimeDatepicker = function(target, date, withDate) {
}
else tp_date = new Date(date.getTime());
if (tp_date.toString() == 'Invalid Date') tp_date = undefined;
}
this._setTime(inst, tp_date);
}
}
};