mirror of
https://github.com/DataTables/DataTables.git
synced 2024-11-29 11:24:10 +01:00
Fix: Nested tables in the the main table's header wold cause an error due to too many TR elements being selected by the header detection method. We want to pick up only the child elements of the header - 6485
This commit is contained in:
parent
a444026985
commit
ad104832d8
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -6437,7 +6437,7 @@
|
|||||||
*/
|
*/
|
||||||
function _fnDetectHeader ( aLayout, nThead )
|
function _fnDetectHeader ( aLayout, nThead )
|
||||||
{
|
{
|
||||||
var nTrs = nThead.getElementsByTagName('tr');
|
var nTrs = $('>tr', nThead);
|
||||||
var nCell;
|
var nCell;
|
||||||
var i, j, k, l, iLen, jLen, iColShifted;
|
var i, j, k, l, iLen, jLen, iColShifted;
|
||||||
var fnShiftCol = function ( a, i, j ) {
|
var fnShiftCol = function ( a, i, j ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user