From f78ce70580990e7f24775759b18e0eff68b0c63b Mon Sep 17 00:00:00 2001 From: Ciro Duran Santilli Date: Tue, 6 Nov 2012 09:08:09 -0200 Subject: [PATCH] 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) --- examples/api/multi_filter.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/api/multi_filter.html b/examples/api/multi_filter.html index 648d3213..3dc6d54c 100644 --- a/examples/api/multi_filter.html +++ b/examples/api/multi_filter.html @@ -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 */ + oTable.fnFilter( this.value, $("tfoot th").index($(this).parent()) ); } );