Skip to content

Add Diacritic support for filtering text#652

Closed
mikehins wants to merge 3 commits into
davidstutz:masterfrom
mikehins:master
Closed

Add Diacritic support for filtering text#652
mikehins wants to merge 3 commits into
davidstutz:masterfrom
mikehins:master

Conversation

@mikehins

Copy link
Copy Markdown

Hi, thanks for this awesome plugin !

I needed to filter options regardless of accents. So I added an option enableReplaceDiacritics.

$(document).ready(function () {
   $('#example-filter-enableReplaceDiacritics').multiselect({
        enableFiltering: true,
        enableReplaceDiacritics : true,
        enableCaseInsensitiveFiltering: true
    });
});
<select id="example-filter-enableReplaceDiacritics" multiple="multiple">
    <option value="a">Bière</option>
    <option value="b">birrë</option>
    <option value="c">Øl</option>
    <option value="d">pivə</option>
    <option value="e">Sör</option>
</select>```

@davidstutz

Copy link
Copy Markdown
Owner

Thanks this might be helpful!

@davidstutz

Copy link
Copy Markdown
Owner

Will manually use a mix of this PR and #725.

@davidstutz davidstutz closed this Jan 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants