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:
parent
b67c0969de
commit
517a3a3663
6
media/js/jquery.dataTables.js
vendored
6
media/js/jquery.dataTables.js
vendored
@ -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 */
|
||||||
|
@ -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 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user