Skip to content

Commit

Permalink
Fix issue #62
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed May 7, 2012
1 parent 8795813 commit e50922d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/jquery.tablesorter.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,7 @@
function computeTableHeaderCellIndexes(t) {
var matrix = [],
lookup = {},
thead = t.getElementsByTagName('THEAD')[0],
trs = thead.getElementsByTagName('TR'),
trs = $('thead:eq(0) tr', t),
i, j, k, l, c, cells, rowIndex, cellId, rowSpan, colSpan, firstAvailCol, matrixrow;
for (i = 0; i < trs.length; i++) {
cells = trs[i].cells;
Expand All @@ -356,7 +355,8 @@
}
}
lookup[cellId] = firstAvailCol;
$(c).attr({ 'data-row' : rowIndex, 'data-column' : firstAvailCol });
// add data-column
$(c).attr({ 'data-column' : firstAvailCol }); // 'data-row' : rowIndex
for (k = rowIndex; k < rowIndex + rowSpan; k++) {
if (typeof(matrix[k]) === "undefined") {
matrix[k] = [];
Expand Down

0 comments on commit e50922d

Please sign in to comment.