Use multiple selectbox to handle both single & multiples

This commit is contained in:
Nathan Gray 2012-07-05 19:59:42 +00:00
parent 6ae812ff45
commit 375fad6cd4

View File

@ -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,