1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-01 13:24:10 +01:00

New: Add preAjax event so plug-in authors can add Ajax params

This commit is contained in:
Allan Jardine 2014-04-25 16:43:31 +01:00
parent 78b043d234
commit 56481941b1
2 changed files with 4 additions and 1 deletions

View File

@ -1 +1 @@
ef259f6640c878bdad5a88706cdf16657e2a74d7 729581eb95f7eb6bdd3a6bcb17a55d385bd40db2

View File

@ -2363,6 +2363,9 @@
// Store the data submitted for the API // Store the data submitted for the API
oSettings.oAjaxData = data; oSettings.oAjaxData = data;
// Allow plug-ins and external processes to modify the data
_fnCallbackFire( oSettings, null, 'preXhr', [oSettings, data] );
if ( oSettings.fnServerData ) if ( oSettings.fnServerData )
{ {
// DataTables 1.9- compatibility // DataTables 1.9- compatibility