Set value for date-timeonly when it's string and NaN

This commit is contained in:
Hadi Nategh 2014-05-26 07:46:30 +00:00
parent e9b035dc8b
commit ba1141f0cc

View File

@ -148,6 +148,7 @@ var et2_date = et2_inputWidget.extend(
this.set_validation_error(false);
this.date.setHours(parsed.hour);
this.date.setMinutes(parsed.minute);
this.input_date.val(_value);
if(old_value !== this.getValue())
{
this.input_date.timepicker('setTime',_value);