koalyptus / TableFilter

A Javascript library making HTML tables filterable and a bit more :)
https://www.tablefilter.com
MIT License
324 stars 95 forks source link

Make search accent insensitive #476

Closed BrunMartins closed 7 years ago

BrunMartins commented 7 years ago

I, I have a little problem.

I'm using this as a phone list and accented names can't be searched if I write them without accents, thanks

koalyptus commented 7 years ago

Hi @BrunMartins, Just set the 'ignore_diacritics' option to true, as per this example: http://koalyptus.github.io/TableFilter/ignore-diacritics.html

Cheers

BrunMartins commented 7 years ago

Hey, thansk for geting back to me, I set that flag, but it still doesn't work, mind you I might be doing something wrong:

var props = { filters_row_index: 1, sort: true, themes_path: "TF_Themes/SkyBlue", help_instructions: false, filters_row_index:1, remember_grid_values: true, alternate_rows: true, rows_counter: true, rows_counter_text: "Linhas Visiveis: ", btn_reset: true, status_bar: true, mark_active_columns: true, col_3: "select", col_4: "select", display_all_text: "< Show all >", ignore_diacritics: true, btn_reset_html: "<input type=\'button\' value=\'Remover Filtros\' class=\'reset\' text-align=\'left\' background=\'rgba(165, 150, 150, 0) url(../img/btn_clear_filters.png) center right no-repeat !important\'>" } var tf = setFilterGrid("table",props);

       *Bruno Martins*
*B&T Informática*

Em associação com Tiago Cardoso (tcardoso1995@gmail.com), e Bruno Rafael ( brunorafjesus@gmail.com)

Copyright @ 2014 B&T Informática

2017-07-05 12:28 GMT+01:00 koalyptus notifications@github.com:

Hi @BrunMartins https://github.com/brunmartins, Just set the 'ignore_diacritics' option to true, as per this example: http://koalyptus.github.io/TableFilter/ignore-diacritics.html

Cheers

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/koalyptus/TableFilter/issues/476#issuecomment-313076700, or mute the thread https://github.com/notifications/unsubscribe-auth/Ab3u8KnEPCGJxLgxjBn75tjO6ayvgVENks5sK3NMgaJpZM4OOMUx .

koalyptus commented 7 years ago

Once you upgrade to TableFilter then it will work. You are using the HTML Table Filter Generator instead, which is a old plugin no longer maintained.

BrunMartins commented 7 years ago

Oh wow okay, any detailed steps on how to do that?

On Jul 5, 2017 12:46, "koalyptus" notifications@github.com wrote:

Once you upgrade to TableFilter then it will work. You are using the HTML Table Filter Generator instead, which is a old plugin no longer maintained.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/koalyptus/TableFilter/issues/476#issuecomment-313080136, or mute the thread https://github.com/notifications/unsubscribe-auth/Ab3u8CO5lSzEy2xTjOHhiFb8Po-2U3upks5sK3engaJpZM4OOMUx .

koalyptus commented 7 years ago

Just follow the README of the GitHub project here.

BrunMartins commented 7 years ago

Alright thanks

On Jul 5, 2017 13:00, "koalyptus" notifications@github.com wrote:

Just follow the README of the GitHub project here.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/koalyptus/TableFilter/issues/476#issuecomment-313082699, or mute the thread https://github.com/notifications/unsubscribe-auth/Ab3u8HgQvhyTzsToloButqMnUnf71bZIks5sK3rlgaJpZM4OOMUx .