Skip to content

Commit

Permalink
tfoot tables no longer breaks sorting. Fixes issue #196
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Dec 20, 2012
1 parent 3c82eea commit 623b1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.tablesorter.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
function computeThIndexes(t) {
var matrix = [],
lookup = {},
trs = $(t).find('thead:eq(0) tr, tfoot tr'),
trs = $(t).find('thead:eq(0), tfoot').children('tr'), // children tr in tfoot - see issue #196
i, j, k, l, c, cells, rowIndex, cellId, rowSpan, colSpan, firstAvailCol, matrixrow;
for (i = 0; i < trs.length; i++) {
cells = trs[i].cells;
Expand Down

0 comments on commit 623b1a3

Please sign in to comment.