mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
column count now correct with nested tables + tfoot. Fixes #547
This commit is contained in:
parent
fcd56c6c23
commit
afe8d3b538
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user