Merge pull request #4 from DukeAstar/master

Fix double redraw with fnReloadAjax
pull/5/merge
Allan Jardine 13 years ago
commit f27c69a2aa

@ -44,13 +44,14 @@ $.fn.dataTableExt.oApi.fnReloadAjax = function ( oSettings, sNewSource, fnCallba
} }
oSettings.aiDisplay = oSettings.aiDisplayMaster.slice(); oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
that.fnDraw();
if ( typeof bStandingRedraw != 'undefined' && bStandingRedraw === true ) if ( typeof bStandingRedraw != 'undefined' && bStandingRedraw === true )
{ {
oSettings._iDisplayStart = iStart; oSettings._iDisplayStart = iStart;
that.fnDraw( false ); that.fnDraw( false );
} }
else
that.fnDraw();
that.oApi._fnProcessingDisplay( oSettings, false ); that.oApi._fnProcessingDisplay( oSettings, false );

Loading…
Cancel
Save