Consider other date widgets for date initialization as they could have fixed data_format too

This commit is contained in:
Hadi Nategh 2014-05-09 09:48:10 +00:00
parent fbd35cba3f
commit 5b80563707

View File

@ -159,7 +159,9 @@ var et2_date = et2_inputWidget.extend(
this._oldValue = _value; this._oldValue = _value;
return; return;
default: default:
if (this.id.match(/^#/g) && this.options.value == _value) // Parse customfields's date with storage data_format to date object // Parse customfields's date with storage data_format to date object
// Or generally any date widgets with fixed date/time format
if (this.id.match(/^#/g) && this.options.value == _value || (this.options.data_format && this.options.value == _value))
{ {
switch (this._type) switch (this._type)
{ {