1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-03-21 13:29:04 +01:00

Fix: A header made of only TD elements wasn't being correctly detected - 11705

This commit is contained in:
Allan Jardine 2012-09-19 07:27:11 +01:00
parent 77a8cb5946
commit b4cd9f11c6
2 changed files with 4 additions and 4 deletions

View File

@ -1165,7 +1165,7 @@
function _fnBuildHead( oSettings )
{
var i, nTh, iLen, j, jLen;
var iThs = oSettings.nTHead.getElementsByTagName('th').length;
var iThs = $('th, td', oSettings.nTHead).length;
var iCorrector = 0;
var jqChildren;
@ -1835,7 +1835,7 @@
}
}
nCell = nCell.nextSibling;
}
}
}
}

View File

@ -79,7 +79,7 @@ function _fnCreateTr ( oSettings, iRow )
function _fnBuildHead( oSettings )
{
var i, nTh, iLen, j, jLen;
var iThs = oSettings.nTHead.getElementsByTagName('th').length;
var iThs = $('th, td', oSettings.nTHead).length;
var iCorrector = 0;
var jqChildren;
@ -749,7 +749,7 @@ function _fnDetectHeader ( aLayout, nThead )
}
}
nCell = nCell.nextSibling;
}
}
}
}