1
0
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:
Allan Jardine 2013-07-24 15:09:37 +01:00
parent b7c6c98031
commit 5e0e5ea5e4
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1 @@
485ee7693dda3db904d3a1939e676981add06e04
e981e968ffccaa7d1c61c414f102f8c6f2ba780b

View File

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