Core: Use table cell, not jQuery object to disable sort

Bug introduced in v2.30.3 (38b4c8d9d5)
Reported on Stack Overflow
This commit is contained in:
Rob Garrison 2018-05-16 18:39:42 -05:00
parent 4a803ce1ee
commit ce0405b2fb

View File

@ -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.$headerIndexed[ c.last.clickedIndex ];
cell = c.$headerIndexed[ c.last.clickedIndex ][0];
if ( cell && !cell.sortDisabled ) {
ts.initSort( c, cell, e );
}