mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-10-08 13:44:18 +00:00
fix onRenderHeader missing last column for issue #93
This commit is contained in:
parent
3b679cb6e7
commit
bc6a10268c
@ -384,7 +384,7 @@
|
||||
$t = $(this);
|
||||
ch = c.headers[index];
|
||||
this.innerHTML = '<div class="tablesorter-header-inner">' + this.innerHTML + '</div>'; // faster than wrapInner
|
||||
if (c.onRenderHeader) { c.onRenderHeader.apply($th, [index]); }
|
||||
if (c.onRenderHeader) { c.onRenderHeader.apply($t, [index]); }
|
||||
this.column = header_index[this.parentNode.rowIndex + "-" + this.cellIndex];
|
||||
this.order = formatSortingOrder( ts.getData($t, ch, 'sortInitialOrder') || c.sortInitialOrder ) ? [1,0,2] : [0,1,2];
|
||||
this.count = -1; // set to -1 because clicking on the header automatically adds one
|
||||
|
Loading…
Reference in New Issue
Block a user