Remove action column - no action columns in et2

This commit is contained in:
Nathan Gray 2012-05-08 17:27:38 +00:00
parent c383da7f23
commit debcd059bc

View File

@ -393,6 +393,7 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], {
if(columnDisplay[j] == colName)
{
_colData[i].disabled = negated;
continue RowLoop;
}
}
@ -485,6 +486,7 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], {
"widget": _row[x].widget
};
columnData[x] = {
"id": "col_" + x,
"caption": this._genColumnCaption(_row[x].widget),
@ -493,6 +495,16 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], {
"width": _colData[x].width
};
// No action columns in et2
var colName = this._getColumnName(_row[x].widget);
if(colName == 'actions' || colName == 'legacy_actions' || colName == 'legacy_actions_check_all')
{
this.columns.splice(x,x);
columnData.splice(x,x);
_colData.splice(x,x);
continue;
}
// Append the widget to this container
this.addChild(_row[x].widget);
}