1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-03-15 16:29:16 +01:00

Updated: Minor change to fnOpen to be more flexible for jQuery input - 2488

This commit is contained in:
Allan Jardine 2012-01-12 07:02:22 +00:00
parent b67c0969de
commit 517a3a3663
2 changed files with 6 additions and 6 deletions

View File

@ -5533,13 +5533,13 @@
nNewCell.className = sClass; nNewCell.className = sClass;
nNewCell.colSpan = _fnVisbleColumns( oSettings ); nNewCell.colSpan = _fnVisbleColumns( oSettings );
if( mHtml.jquery !== undefined || typeof mHtml === "object" ) if (typeof mHtml === "string")
{ {
nNewCell.appendChild( mHtml ); nNewCell.innerHTML = mHtml;
} }
else else
{ {
nNewCell.innerHTML = mHtml; $(nNewCell).html( mHtml );
} }
/* If the nTr isn't on the page at the moment - then we don't insert at the moment */ /* If the nTr isn't on the page at the moment - then we don't insert at the moment */

View File

@ -794,13 +794,13 @@ this.fnOpen = function( nTr, mHtml, sClass )
nNewCell.className = sClass; nNewCell.className = sClass;
nNewCell.colSpan = _fnVisbleColumns( oSettings ); nNewCell.colSpan = _fnVisbleColumns( oSettings );
if( mHtml.jquery !== undefined || typeof mHtml === "object" ) if (typeof mHtml === "string")
{ {
nNewCell.appendChild( mHtml ); nNewCell.innerHTML = mHtml;
} }
else else
{ {
nNewCell.innerHTML = mHtml; $(nNewCell).html( mHtml );
} }
/* If the nTr isn't on the page at the moment - then we don't insert at the moment */ /* If the nTr isn't on the page at the moment - then we don't insert at the moment */