mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-20 18:54:15 +01:00
Fix: Column ordering state saving was being flatten
* $.map will flatten the return array, which we do not want
This commit is contained in:
parent
3dc23c436d
commit
77343b72cb
@ -1 +1 @@
|
|||||||
0d083ea96f3a3e5fc06d3b1a2104fc7b7c909967
|
d9ae476f33e842c5ed90ffa87e4eb038165c3de9
|
||||||
|
9
media/js/jquery.dataTables.js
vendored
9
media/js/jquery.dataTables.js
vendored
@ -4765,10 +4765,13 @@
|
|||||||
oSettings._iDisplayStart = oData.iStart;
|
oSettings._iDisplayStart = oData.iStart;
|
||||||
oSettings.iInitDisplayStart = oData.iStart;
|
oSettings.iInitDisplayStart = oData.iStart;
|
||||||
oSettings._iDisplayLength = oData.iLength;
|
oSettings._iDisplayLength = oData.iLength;
|
||||||
oSettings.aaSorting = $.map( oData.aaSorting, function ( col, i ) {
|
oSettings.aaSorting = [];
|
||||||
return col[0] >= columns.length ?
|
|
||||||
|
$.each( oData.aaSorting, function ( i, col ) {
|
||||||
|
oSettings.aaSorting.push( col[0] >= columns.length ?
|
||||||
[ 0, col[1] ] :
|
[ 0, col[1] ] :
|
||||||
col;
|
col
|
||||||
|
);
|
||||||
} );
|
} );
|
||||||
|
|
||||||
/* Search filtering */
|
/* Search filtering */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user