}
$thead.append( this );
} );
- $table.children('tbody').before( $thead );
+ $table.find(' > tbody:first').before( $thead );
}
if( !$table.get(0).tFoot ) {
var $tfoot = $( '<tfoot>' );
if ( $tfoot.length ) {
$tfoot.eq(0).prepend( $sortbottoms );
} else {
- $table.append( $( '<tfoot>' ).append( $sortbottoms ) )
+ $table.append( $( '<tfoot>' ).append( $sortbottoms ) );
}
}