1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-18 11:52:11 +01:00

Dev: Remove code that isn't required from _fnAjaxUpdate

This commit is contained in:
Allan Jardine 2014-06-18 13:45:10 +01:00
parent 7bca91d1b5
commit 2a97165e37
2 changed files with 13 additions and 12 deletions

View File

@ -1 +1 @@
2cee9bcfddd46dfb0afc36325d550b8fb99f0f1d
debc26bfb3a634ea5695a548af94eefe2389b073

View File

@ -2415,22 +2415,23 @@
/**
* Update the table using an Ajax call
* @param {object} oSettings dataTables settings object
* @param {object} settings dataTables settings object
* @returns {boolean} Block the table drawing or not
* @memberof DataTable#oApi
*/
function _fnAjaxUpdate( oSettings )
function _fnAjaxUpdate( settings )
{
if ( oSettings.bAjaxDataGet )
{
oSettings.iDraw++;
_fnProcessingDisplay( oSettings, true );
var iColumns = oSettings.aoColumns.length;
var aoData = _fnAjaxParameters( oSettings );
if ( settings.bAjaxDataGet ) {
settings.iDraw++;
_fnProcessingDisplay( settings, true );
_fnBuildAjax( oSettings, aoData, function(json) {
_fnAjaxUpdateDraw( oSettings, json );
}, oSettings );
_fnBuildAjax(
settings,
_fnAjaxParameters( settings ),
function(json) {
_fnAjaxUpdateDraw( settings, json );
}
);
return false;
}