mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-28 01:54:15 +01:00
Update media/src/core/core.ajax.js
Remove unnecessary else(s)
This commit is contained in:
parent
6b605936f7
commit
a3b5706105
@ -1,5 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update the table using an Ajax call
|
* Update the table using an Ajax call
|
||||||
* @param {object} oSettings dataTables settings object
|
* @param {object} oSettings dataTables settings object
|
||||||
@ -22,11 +21,8 @@ function _fnAjaxUpdate( oSettings )
|
|||||||
}, oSettings );
|
}, oSettings );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -133,11 +129,8 @@ function _fnAjaxUpdateDraw ( oSettings, json )
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
oSettings.iDraw = json.sEcho * 1;
|
oSettings.iDraw = json.sEcho * 1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ( !oSettings.oScroll.bInfinite ||
|
if ( !oSettings.oScroll.bInfinite ||
|
||||||
(oSettings.oScroll.bInfinite && (oSettings.bSorted || oSettings.bFiltered)) )
|
(oSettings.oScroll.bInfinite && (oSettings.bSorted || oSettings.bFiltered)) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user