Skip to content

Commit b4e9503

Browse files
committed
Fix: Column ordering state saving was being flatten
(commit d9ae476f33e842c5ed90ffa87e4eb038165c3de9)
1 parent d637e09 commit b4e9503

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: app/assets/javascripts/dataTables/jquery.dataTables.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -4765,10 +4765,13 @@
47654765
oSettings._iDisplayStart = oData.iStart;
47664766
oSettings.iInitDisplayStart = oData.iStart;
47674767
oSettings._iDisplayLength = oData.iLength;
4768-
oSettings.aaSorting = $.map( oData.aaSorting, function ( col, i ) {
4769-
return col[0] >= columns.length ?
4768+
oSettings.aaSorting = [];
4769+
4770+
$.each( oData.aaSorting, function ( i, col ) {
4771+
oSettings.aaSorting.push( col[0] >= columns.length ?
47704772
[ 0, col[1] ] :
4771-
col;
4773+
col
4774+
);
47724775
} );
47734776

47744777
/* Search filtering */

0 commit comments

Comments
 (0)