1
0
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:
Allan Jardine 2014-01-31 13:25:30 +00:00
parent 1033d785e3
commit cea15987d3
2 changed files with 14 additions and 5 deletions

View File

@ -1 +1 @@
bfbc4166e80a47cee283757c2f4516ade09778cd
75b9c2a7f105519aa810cf28e65d23bdd494ced9

View File

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