mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-17 03:51:21 +02:00
For radiobox customfields, implement "empty" first value = extra group label
This commit is contained in:
@ -411,9 +411,15 @@ var et2_customfields_list = et2_valueWidget.extend([et2_IDetachedDOM, et2_IInput
|
||||
return true;
|
||||
},
|
||||
_setup_radio: function(field_name, field, attrs) {
|
||||
// No label on the widget itself
|
||||
// 'Empty' label will be first
|
||||
delete(attrs.label);
|
||||
|
||||
if(field.values && field.values[''])
|
||||
{
|
||||
attrs.label = field.values[''];
|
||||
delete field.values[''];
|
||||
}
|
||||
|
||||
field.type = 'radiogroup';
|
||||
attrs.options = field.values;
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user