Automatically disable custom field column if there are no custom fields

This commit is contained in:
Nathan Gray 2014-04-23 20:39:22 +00:00
parent d401f141a9
commit 4f2f64fcbe

View File

@ -760,6 +760,12 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput],
continue RowLoop; continue RowLoop;
} }
} }
// Disable if there are no custom fields
if(jQuery.isEmptyObject(_row[i].widget.customfields))
{
_colData[i].disabled = true;
continue;
}
} }
var colName = this._getColumnName(_row[i].widget); var colName = this._getColumnName(_row[i].widget);