fixed not shown readonly value for numerical values

This commit is contained in:
Ralf Becker 2015-04-03 14:20:19 +00:00
parent 372769842c
commit fd435043ad

View File

@ -1149,6 +1149,11 @@ var et2_selectbox_ro = et2_selectbox.extend([et2_IDetachedDOM],
{
_value = _value.match(this._is_multiple_regexp) !== null ? _value.split(',') : [_value];
}
// need to handle numerical values too
else if (typeof _value == 'number')
{
_value = [_value];
}
this.span.empty();
if(_value)