et2_widget_date-> datetime:Fix replacement of entered time manually with actuall time

This commit is contained in:
Hadi Nategh 2013-09-12 11:45:26 +00:00
parent 9523ba79c2
commit c1683552ba

View File

@ -104,6 +104,11 @@ var et2_date = et2_inputWidget.extend(
d.setHours(inst.hour);
d.setMinutes(inst.minute);
}
else if(inst && (typeof inst.hour === 'undefined'))
{
d.setHours(inst.settings.timepicker.hour);
d.setMinutes(inst.settings.timepicker.minute);
}
self.set_value(d);
});