mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-18 16:54:14 +01:00
Dev fix: The new custom events will always pass the DataTables settings object as the first parameter
This commit is contained in:
parent
22cb3edef7
commit
e32312be0b
10
media/js/jquery.dataTables.js
vendored
10
media/js/jquery.dataTables.js
vendored
@ -1338,7 +1338,7 @@
|
||||
"url": url,
|
||||
"data": data,
|
||||
"success": function (json) {
|
||||
$(settings.oInstance).trigger('xhr', json);
|
||||
$(settings.oInstance).trigger('xhr', settings);
|
||||
callback( json );
|
||||
},
|
||||
"dataType": "json",
|
||||
@ -3391,7 +3391,7 @@
|
||||
{
|
||||
oSettings.aoDrawCallback[i].fn.call( oSettings.oInstance, oSettings );
|
||||
}
|
||||
$(oSettings.oInstance).trigger('draw');
|
||||
$(oSettings.oInstance).trigger('draw', oSettings);
|
||||
|
||||
/* Draw is complete, sorting and filtering must be as well */
|
||||
oSettings.bSorted = false;
|
||||
@ -4349,7 +4349,7 @@
|
||||
|
||||
/* Tell the draw function we have been filtering */
|
||||
oSettings.bFiltered = true;
|
||||
$(oSettings.oInstance).trigger('filter');
|
||||
$(oSettings.oInstance).trigger('filter', oSettings);
|
||||
|
||||
/* Redraw the table */
|
||||
oSettings._iDisplayStart = 0;
|
||||
@ -4735,7 +4735,7 @@
|
||||
|
||||
/* Tell the draw function that we have sorted the data */
|
||||
oSettings.bSorted = true;
|
||||
$(oSettings.oInstance).trigger('sort');
|
||||
$(oSettings.oInstance).trigger('sort', oSettings);
|
||||
|
||||
/* Copy the master data into the draw array and re-draw */
|
||||
if ( oSettings.oFeatures.bFilter )
|
||||
@ -5129,7 +5129,7 @@
|
||||
{
|
||||
_fnLog( oSettings, 0, "Unknown paging action: "+sAction );
|
||||
}
|
||||
$(oSettings.oInstance).trigger('page');
|
||||
$(oSettings.oInstance).trigger('page', oSettings);
|
||||
|
||||
return iOldStart != oSettings._iDisplayStart;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user