mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
Handle captions on selectboxes with no label by using the empty option
This commit is contained in:
parent
2f9118779b
commit
8c77cb1bcb
@ -257,13 +257,14 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], {
|
||||
if(typeof _widget._genColumnCaption == "function") return _widget._genColumnCaption();
|
||||
|
||||
_widget.iterateOver(function(_widget) {
|
||||
var label = (_widget.options.label ? _widget.options.label : _widget.options.empty_label);
|
||||
if (!result)
|
||||
{
|
||||
result = _widget.options.label;
|
||||
result = label;
|
||||
}
|
||||
else
|
||||
{
|
||||
result += ", " + _widget.options.label;
|
||||
result += ", " + label;
|
||||
}
|
||||
}, this, et2_INextmatchHeader);
|
||||
|
||||
@ -385,7 +386,7 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], {
|
||||
|
||||
var colName = this._getColumnName(_row[i].widget);
|
||||
if(!colName) continue;
|
||||
|
||||
|
||||
if(size[colName]) _colData[i].width = size[colName];
|
||||
for(var j = 0; j < columnDisplay.length; j++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user