1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-01 13:24:10 +01:00

Updated: Store a complete representation of the column visibility state in aoData[]._anHidden (i.e. put in nulls for elements which are visible) to make manipulation much easier.

This commit is contained in:
Allan Jardine 2010-10-23 17:36:55 +01:00
parent 1dd9630d53
commit 12c81b8e65

View File

@ -2576,6 +2576,7 @@
if ( oSettings.aoColumns[i].bVisible )
{
oSettings.aoData[iThisIndex].nTr.appendChild( nTd );
oSettings.aoData[iThisIndex]._anHidden[i] = null;
}
else
{
@ -2738,6 +2739,10 @@
oSettings.aoData[iRow]._anHidden[iColumn] = nCell;
nCell.parentNode.removeChild( nCell );
}
else
{
oSettings.aoData[iRow]._anHidden[iColumn] = null;
}
}
}
}