Skip to content

Commit bc6a102

Browse files
committed
fix onRenderHeader missing last column for issue #93
1 parent 3b679cb commit bc6a102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.tablesorter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@
384384
$t = $(this);
385385
ch = c.headers[index];
386386
this.innerHTML = '<div class="tablesorter-header-inner">' + this.innerHTML + '</div>'; // faster than wrapInner
387-
if (c.onRenderHeader) { c.onRenderHeader.apply($th, [index]); }
387+
if (c.onRenderHeader) { c.onRenderHeader.apply($t, [index]); }
388388
this.column = header_index[this.parentNode.rowIndex + "-" + this.cellIndex];
389389
this.order = formatSortingOrder( ts.getData($t, ch, 'sortInitialOrder') || c.sortInitialOrder ) ? [1,0,2] : [0,1,2];
390390
this.count = -1; // set to -1 because clicking on the header automatically adds one

0 commit comments

Comments
 (0)