|
|
|
@ -43,10 +43,16 @@ function highlight( body, table )
|
|
|
|
|
|
|
|
|
|
// Don't highlight the "not found" row, so we get the rows using the api
|
|
|
|
|
if ( table.rows( { filter: 'applied' } ).data().length ) {
|
|
|
|
|
table.columns().every( function () {
|
|
|
|
|
var column = this;
|
|
|
|
|
column.nodes().flatten().to$().unhighlight({ className: 'column_highlight' });
|
|
|
|
|
column.nodes().flatten().to$().highlight( $.trim( column.search() ).split(/\s+/), { className: 'column_highlight' } );
|
|
|
|
|
} );
|
|
|
|
|
body.highlight( $.trim( table.search() ).split(/\s+/) );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Listen for DataTables initialisations
|
|
|
|
|
$(document).on( 'init.dt.dth', function (e, settings, json) {
|
|
|
|
|
if ( e.namespace !== 'dt' ) {
|
|
|
|
|