Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update examples/api/multi_filter.html #133

Merged
merged 1 commit into from

2 participants

@cirosantilli

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)

@cirosantilli cirosantilli 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)
f78ce70
@DataTables
Owner

Yes - fair enough. Its a little bit of a shorty way of doing it anyway since it doesn't take into account hidden columns.

@DataTables DataTables merged commit a5c80d4 into DataTables:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 6, 2012
  1. @cirosantilli

    Update examples/api/multi_filter.html

    cirosantilli authored
    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 page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/api/multi_filter.html
View
4 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 <th> */
+ oTable.fnFilter( this.value, $("tfoot th").index($(this).parent()) );
} );
Something went wrong with that request. Please try again.