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:
parent
7bca91d1b5
commit
2a97165e37
@ -1 +1 @@
|
||||
2cee9bcfddd46dfb0afc36325d550b8fb99f0f1d
|
||||
debc26bfb3a634ea5695a548af94eefe2389b073
|
||||
|
23
media/js/jquery.dataTables.js
vendored
23
media/js/jquery.dataTables.js
vendored
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user