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:
parent
1dd9630d53
commit
12c81b8e65
5
media/js/jquery.dataTables.js
vendored
5
media/js/jquery.dataTables.js
vendored
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user