1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-19 17:54:14 +01:00

Dev fix: Read row ID/class from _aData

This commit is contained in:
Allan Jardine 2011-04-23 11:44:09 +01:00
parent e2f31c5a13
commit 198222d8d6

View File

@ -2716,14 +2716,14 @@
oData.nTr = document.createElement('tr'); oData.nTr = document.createElement('tr');
/* Special parameters can be given by the data source to be used on the row */ /* Special parameters can be given by the data source to be used on the row */
if ( typeof oData.DT_RowId != 'undefined' ) if ( typeof oData._aData.DT_RowId != 'undefined' )
{ {
oData.nTr.setAttribute( 'id', oData.DT_RowId ); oData.nTr.setAttribute( 'id', oData._aData.DT_RowId );
} }
if ( typeof oData.DT_RowClass != 'undefined' ) if ( typeof oData._aData.DT_RowClass != 'undefined' )
{ {
$(oData.nTr).addClass( oData.DT_RowClass ); $(oData.nTr).addClass( oData._aData.DT_RowClass );
} }
/* Process each column */ /* Process each column */