mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Core: Store sortList on init. Fixes #1585
This commit is contained in:
parent
9d53e3b35b
commit
d7372ef9e0
@ -319,6 +319,8 @@
|
||||
ts.applyWidget( table, true );
|
||||
// if user has supplied a sort list to constructor
|
||||
if ( c.sortList.length > 0 ) {
|
||||
// save sortList before any sortAppend is added
|
||||
c.last.sortList = c.sortList;
|
||||
ts.sortOn( c, c.sortList, {}, !c.initWidgets );
|
||||
} else {
|
||||
ts.setHeadersCss( c );
|
||||
|
Loading…
Reference in New Issue
Block a user