mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
Make sure options get set, if provided to constructor
This commit is contained in:
parent
9d11043ef3
commit
fc3553636d
@ -515,6 +515,7 @@ var et2_selectbox_ro = et2_selectbox.extend([et2_IDetachedDOM], {
|
||||
|
||||
this.supportedWidgetClasses = [];
|
||||
this.optionValues = {};
|
||||
if(this.options.select_options) this.set_select_options(this.options.select_options);
|
||||
},
|
||||
|
||||
createInputWidget: function() {
|
||||
@ -577,7 +578,7 @@ var et2_selectbox_ro = et2_selectbox.extend([et2_IDetachedDOM], {
|
||||
return;
|
||||
}
|
||||
var option = this.optionValues[_value];
|
||||
if (typeof option === 'object')
|
||||
if (typeof option === 'object' && option != null)
|
||||
{
|
||||
this.span.text(option.label);
|
||||
this.set_statustext(option.title);
|
||||
|
Loading…
Reference in New Issue
Block a user