mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-28 01:54:15 +01:00
Fix: The construct <tfoot><tr></tr></tfoot> would break the new table header/footer draw. While strictly this isn't valid HTML, 1.7 and before allowed it - so adding a condtion here to allow it in 1.8 as well
This commit is contained in:
parent
2c8868dd53
commit
d4b8495378
3
media/js/jquery.dataTables.js
vendored
3
media/js/jquery.dataTables.js
vendored
@ -3098,10 +3098,13 @@
|
|||||||
for ( i=0, iLen=aoLocal.length ; i<iLen ; i++ )
|
for ( i=0, iLen=aoLocal.length ; i<iLen ; i++ )
|
||||||
{
|
{
|
||||||
/* All cells are going to be replaced, so empty out the row */
|
/* All cells are going to be replaced, so empty out the row */
|
||||||
|
if ( aoLocal[i].nTr )
|
||||||
|
{
|
||||||
for ( k=0, kLen=aoLocal[i].nTr.childNodes.length ; k<kLen ; k++ )
|
for ( k=0, kLen=aoLocal[i].nTr.childNodes.length ; k<kLen ; k++ )
|
||||||
{
|
{
|
||||||
aoLocal[i].nTr.removeChild( aoLocal[i].nTr.childNodes[0] );
|
aoLocal[i].nTr.removeChild( aoLocal[i].nTr.childNodes[0] );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for ( j=0, jLen=aoLocal[i].length ; j<jLen ; j++ )
|
for ( j=0, jLen=aoLocal[i].length ; j<jLen ; j++ )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user