From bc805602cba662a014af2859c7c7b692878aa505 Mon Sep 17 00:00:00 2001 From: globalinnovation Date: Tue, 30 Jul 2013 20:25:39 -0300 Subject: [PATCH] Update fnAddTr.js - Fix - Showing invisible columns Showing not visible columns and returning the result of fnAddData --- api/fnAddTr.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/api/fnAddTr.js b/api/fnAddTr.js index 78f4eec..ffcb135 100644 --- a/api/fnAddTr.js +++ b/api/fnAddTr.js @@ -29,14 +29,5 @@ $.fn.dataTableExt.oApi.fnAddTr = function ( oSettings, nTr, bRedraw ) { } /* Add the data and then replace DataTable's generated TR with ours */ - var iIndex = this.oApi._fnAddData( oSettings, aData ); - nTr._DT_RowIndex = iIndex; - oSettings.aoData[ iIndex ].nTr = nTr; - - oSettings.aiDisplay = oSettings.aiDisplayMaster.slice(); - - if ( bRedraw ) - { - this.oApi._fnReDraw( oSettings ); - } + return this.fnAddData( aData, bRedraw ); };