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

Update examples/api/multi_filter.html

minor improvement: calculate index based on the element's parent th.

this is better because it allows to have some columns that are not searchable (like when the first row is a checkbox row)
This commit is contained in:
Ciro Duran Santilli 2012-11-06 09:08:09 -02:00
parent 823e64cccb
commit f78ce70580

View File

@ -22,8 +22,8 @@
} );
$("tfoot input").keyup( function () {
/* Filter on the column (the index) of this element */
oTable.fnFilter( this.value, $("tfoot input").index(this) );
/* Filter on the column based on the index of this element's parent <th> */
oTable.fnFilter( this.value, $("tfoot th").index($(this).parent()) );
} );