mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-18 04:20:05 +02:00
Fix up nextmatch column / custom field selection in header
This commit is contained in:
@@ -243,6 +243,30 @@ var et2_customfields_list = et2_baseWidget.extend([et2_IDetachedDOM], {
|
||||
attrs.application = field.type;
|
||||
},
|
||||
|
||||
/**
|
||||
* Set which fields are visible, by name
|
||||
*
|
||||
* Note: no # prefix on the name
|
||||
*
|
||||
*/
|
||||
set_visible: function(_fields) {
|
||||
for(var name in _fields)
|
||||
{
|
||||
if(this.rows[this.prefix + name])
|
||||
{
|
||||
if(_fields[name])
|
||||
{
|
||||
this.rows.show();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.rows.hide();
|
||||
}
|
||||
}
|
||||
this.options.fields[name] = _fields[name];
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Code for implementing et2_IDetachedDOM
|
||||
*/
|
||||
|
Reference in New Issue
Block a user