jquery/jquery-mobile — Issue #2723: Filter list items that contain custom characters!
Author: akizor
Created: 2011-10-17 08:10:49+00:00
State: open

Hello!

My main issue is how to filter a list that have some custom characters.

My list has a lot of characters like: ă, î, ț, ș, etc..

I want my filter to recognize these characters as: a, i, t, s.

To be more specific!

- I have a list item called: Toamnă
- I type on filter input field: toamna
- The filter wont show me the item "Toamnă"
- If i type: toamn
- The filter is showing me the item.
- I want to type toamna and show me "Toamnă"

I know there is a jQM function called "$.mobile.listview.prototype.options.filterCallback" and can create a callback function to filter my items. I tried a replace function of characters but didn't worked. But this function only refers to the filtring issue, not the list items.

Any guidance will be appreciated!