Fix up nextmatch column / custom field selection in header

This commit is contained in:
Nathan Gray
2012-03-19 19:23:23 +00:00
parent 00c9b4f613
commit 1257ab5e7c
2 changed files with 96 additions and 57 deletions

View File

@@ -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
*/