From e2f31c5a13fdb09c6a08c0488d9c2e8adebe7ad6 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Sat, 23 Apr 2011 11:39:18 +0100 Subject: [PATCH] Dev update: Automatic additio of ID and class should be done in the create TR mthod --- media/js/jquery.dataTables.js | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 47dd47c7..17c8960c 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -2653,17 +2653,6 @@ }; oSettings.aoData.push( oData ); - /* Special parameters can be given by the data source to be used on the row */ - if ( typeof aDataIn.DT_RowId != 'undefined' ) - { - oData.nTr.setAttribute( 'id', aDataIn.DT_RowId ); - } - - if ( typeof aDataIn.DT_RowClass != 'undefined' ) - { - $(oData.nTr).addClass( aDataIn.DT_RowClass ); - } - /* Create the cells */ var nTd, sThisType; for ( var i=0, iLen=oSettings.aoColumns.length ; i