mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
Core: Use indexed headers. Fixes #1524
This commit is contained in:
parent
5e4ab3b843
commit
38b4c8d9d5
@ -520,7 +520,7 @@
|
||||
$cell = ts.getClosest( $( this ), '.' + ts.css.header );
|
||||
// use column index from data-attribute or index of current row; fixes #1116
|
||||
c.last.clickedIndex = $cell.attr( 'data-column' ) || $cell.index();
|
||||
cell = c.$headers[ c.last.clickedIndex ];
|
||||
cell = c.$headerIndexed[ c.last.clickedIndex ];
|
||||
if ( cell && !cell.sortDisabled ) {
|
||||
ts.initSort( c, cell, e );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user