fix onRenderHeader missing last column for issue #93

This commit is contained in:
Rob Garrison 2012-06-20 06:09:12 -05:00
parent 3b679cb6e7
commit bc6a10268c

View File

@ -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