No need to check oldValue as check for customfields condition is good enough, and it may cause other date widgets do not get parsed

This commit is contained in:
Hadi Nategh 2014-05-09 08:48:26 +00:00
parent b6e2460e91
commit fbd35cba3f

View File

@ -172,7 +172,7 @@ var et2_date = et2_inputWidget.extend(
} }
this.date = new Date(parsed); this.date = new Date(parsed);
} }
else if(!jQuery.isEmptyObject(this._oldValue)) // Parse other date widgets date with timepicker date/time format to date onject else // Parse other date widgets date with timepicker date/time format to date onject
{ {
var parsed = jQuery.datepicker.parseDateTime(this.input_date.datepicker('option', 'dateFormat'), var parsed = jQuery.datepicker.parseDateTime(this.input_date.datepicker('option', 'dateFormat'),
this.input_date.datepicker('option', 'timeFormat'), _value); this.input_date.datepicker('option', 'timeFormat'), _value);