From 1b1c0518f4861254ff027bc2280560f89007f939 Mon Sep 17 00:00:00 2001 From: DukeAstar Date: Thu, 26 Jul 2012 01:15:33 +0300 Subject: [PATCH] Fix double redraw of all the rows when bStandingRedraw = true If the row draw callback is expensive this double redraw of all rows is awfull. --- api/fnReloadAjax.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/fnReloadAjax.js b/api/fnReloadAjax.js index b6655f7..5fd6bf0 100644 --- a/api/fnReloadAjax.js +++ b/api/fnReloadAjax.js @@ -44,13 +44,14 @@ $.fn.dataTableExt.oApi.fnReloadAjax = function ( oSettings, sNewSource, fnCallba } oSettings.aiDisplay = oSettings.aiDisplayMaster.slice(); - that.fnDraw(); if ( typeof bStandingRedraw != 'undefined' && bStandingRedraw === true ) { oSettings._iDisplayStart = iStart; that.fnDraw( false ); } + else + that.fnDraw(); that.oApi._fnProcessingDisplay( oSettings, false );