mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
Use multiple selectbox to handle both single & multiples
This commit is contained in:
parent
6ae812ff45
commit
375fad6cd4
@ -227,8 +227,10 @@ var et2_historylog = et2_valueWidget.extend([et2_IDataProvider],{
|
||||
if(typeof field == 'object') attrs['select-options'] = field;
|
||||
|
||||
var widget = et2_createWidget(typeof field == 'string' ? field : 'select', attrs, this);
|
||||
if(widget.instanceOf(et2_selectbox)) widget.options.multiple = true;
|
||||
widget.transformAttributes(attrs);
|
||||
|
||||
|
||||
this.fields[key] = {
|
||||
attrs: attrs,
|
||||
widget: widget,
|
||||
|
Loading…
Reference in New Issue
Block a user