mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-27 00:54:15 +01:00
Dev fix: Set the legacy.ajax option to null by default so you can tell
DataTables to specifially send the SSP params in the old or new format
This commit is contained in:
parent
1033d785e3
commit
cea15987d3
@ -1 +1 @@
|
||||
bfbc4166e80a47cee283757c2f4516ade09778cd
|
||||
75b9c2a7f105519aa810cf28e65d23bdd494ced9
|
||||
|
17
media/js/jquery.dataTables.js
vendored
17
media/js/jquery.dataTables.js
vendored
@ -2442,8 +2442,17 @@
|
||||
}
|
||||
|
||||
data.__legacy = true;
|
||||
return settings.sAjaxSource || DataTable.ext.legacy.ajax ?
|
||||
data : d;
|
||||
|
||||
// If the legacy.ajax parameter is null, then we automatically decide which
|
||||
// form to use, based on sAjaxSource
|
||||
var legacy = DataTable.ext.legacy.ajax;
|
||||
if ( legacy === null ) {
|
||||
return settings.sAjaxSource ? data : d;
|
||||
}
|
||||
|
||||
// Otherwise, if legacy has been specified then we use that to decide on the
|
||||
// form
|
||||
return legacy ? data : d;
|
||||
}
|
||||
|
||||
|
||||
@ -13067,9 +13076,9 @@
|
||||
* requests
|
||||
*
|
||||
* @type boolean
|
||||
* @default false
|
||||
* @default null
|
||||
*/
|
||||
ajax: false
|
||||
ajax: null
|
||||
},
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user