mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +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;
|
if(typeof field == 'object') attrs['select-options'] = field;
|
||||||
|
|
||||||
var widget = et2_createWidget(typeof field == 'string' ? field : 'select', attrs, this);
|
var widget = et2_createWidget(typeof field == 'string' ? field : 'select', attrs, this);
|
||||||
|
if(widget.instanceOf(et2_selectbox)) widget.options.multiple = true;
|
||||||
widget.transformAttributes(attrs);
|
widget.transformAttributes(attrs);
|
||||||
|
|
||||||
|
|
||||||
this.fields[key] = {
|
this.fields[key] = {
|
||||||
attrs: attrs,
|
attrs: attrs,
|
||||||
widget: widget,
|
widget: widget,
|
||||||
|
Loading…
Reference in New Issue
Block a user