@ -17,7 +17,7 @@
$ . fn . dataTableExt . oApi . fnReloadAjax = function ( oSettings , sNewSource , fnCallback , bStandingRedraw )
$ . fn . dataTableExt . oApi . fnReloadAjax = function ( oSettings , sNewSource , fnCallback , bStandingRedraw )
{
{
if ( typeof sNewSource != 'undefined' && sNewSource ! = null ) {
if ( sNewSource !== undefined && sNewSource != = null ) {
oSettings . sAjaxSource = sNewSource ;
oSettings . sAjaxSource = sNewSource ;
}
}
@ -49,20 +49,19 @@ $.fn.dataTableExt.oApi.fnReloadAjax = function ( oSettings, sNewSource, fnCallba
oSettings . aiDisplay = oSettings . aiDisplayMaster . slice ( ) ;
oSettings . aiDisplay = oSettings . aiDisplayMaster . slice ( ) ;
if ( typeof bStandingRedraw != 'undefined' && bStandingRedraw === true )
that . fnDraw ( ) ;
if ( bStandingRedraw === true )
{
{
oSettings . _iDisplayStart = iStart ;
oSettings . _iDisplayStart = iStart ;
that . oApi . _fnCalculateEnd ( oSettings ) ;
that . fnDraw ( false ) ;
that . fnDraw ( false ) ;
}
}
else
{
that . fnDraw ( ) ;
}
that . oApi . _fnProcessingDisplay ( oSettings , false ) ;
that . oApi . _fnProcessingDisplay ( oSettings , false ) ;
/* Callback user function - for event handlers etc */
/* Callback user function - for event handlers etc */
if ( typeof fnCallback == 'function' && fnCallback != null )
if ( typeof fnCallback == 'function' && fnCallback != = null )
{
{
fnCallback ( oSettings ) ;
fnCallback ( oSettings ) ;
}
}