column count now correct with nested tables + tfoot. Fixes #547

This commit is contained in:
Mottie 2014-03-18 17:56:48 -05:00
parent fcd56c6c23
commit afe8d3b538
2 changed files with 2 additions and 2 deletions

View File

@ -387,7 +387,7 @@
var matrix = [],
lookup = {},
cols = 0, // determine the number of columns
trs = $(t).find('thead:eq(0), tfoot').children('tr'), // children tr in tfoot - see issue #196
trs = $(t).children('thead, tfoot').children('tr'), // children tr in tfoot - see issue #196 & #547
i, j, k, l, c, cells, rowIndex, cellId, rowSpan, colSpan, firstAvailCol, matrixrow;
for (i = 0; i < trs.length; i++) {
cells = trs[i].cells;

View File

@ -680,7 +680,7 @@ ts.filter = {
for (column = 0; column < columns; column++) {
buildFilter += '<td></td>';
}
c.$filters = $(buildFilter += '</tr>').appendTo( c.$table.find('thead').eq(0) ).find('td');
c.$filters = $(buildFilter += '</tr>').appendTo( c.$table.children('thead').eq(0) ).find('td');
// build each filter input
for (column = 0; column < columns; column++) {
disabled = false;