fixed not shown readonly value for numerical values

This commit is contained in:
Ralf Becker 2015-04-03 14:19:34 +00:00
parent 4eea57c8a8
commit 6390696ee6

View File

@ -941,6 +941,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)