mirror of
https://github.com/DataTables/DataTables.git
synced 2024-12-01 13:24:10 +01:00
Dev fix: Single column sort when not shift clicking the column
- If you were multi-column sorting, and didn't have shift depressed and click on the first column in the sorting priority, the multi-column sort would be retained. Non-shift click on any of the other columns would reduce to a single column sort, so match here
This commit is contained in:
parent
b7c6c98031
commit
5e0e5ea5e4
@ -1 +1 @@
|
||||
485ee7693dda3db904d3a1939e676981add06e04
|
||||
e981e968ffccaa7d1c61c414f102f8c6f2ba780b
|
||||
|
1
media/js/jquery.dataTables.js
vendored
1
media/js/jquery.dataTables.js
vendored
@ -4105,6 +4105,7 @@
|
||||
// Single column - already sorting on this column, modify the sort
|
||||
nextSortIdx = next( sorting[0] );
|
||||
|
||||
sorting.length = 1;
|
||||
sorting[0][1] = asSorting[ nextSortIdx ];
|
||||
sorting[0]._idx = nextSortIdx;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user