mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-12 10:54:14 +01:00
New: Column names, if defined, are submitted to the server-side for server-side processing. This is useful for the column ordering information, since it is possible for the server to be expecting a different column order from what DataTables is using - specifically with the column indexes such as sSearch_{i}.
This commit is contained in:
parent
f57434fc5b
commit
1e1e8f0104
9
media/js/jquery.dataTables.js
vendored
9
media/js/jquery.dataTables.js
vendored
@ -3157,6 +3157,15 @@
|
|||||||
aoData.push( { "name": "iDisplayLength", "value": oSettings.oFeatures.bPaginate !== false ?
|
aoData.push( { "name": "iDisplayLength", "value": oSettings.oFeatures.bPaginate !== false ?
|
||||||
oSettings._iDisplayLength : -1 } );
|
oSettings._iDisplayLength : -1 } );
|
||||||
|
|
||||||
|
/* Column names */
|
||||||
|
for ( i=0 ; i<iColumns ; i++ )
|
||||||
|
{
|
||||||
|
if ( oSettings.aoColumns[i].sName != '' )
|
||||||
|
{
|
||||||
|
aoData.push( { "name": "sName"+i, "value": oSettings.aoColumns[i].sName } );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Filtering */
|
/* Filtering */
|
||||||
if ( oSettings.oFeatures.bFilter !== false )
|
if ( oSettings.oFeatures.bFilter !== false )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user