Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
Added for filter as well.
Browse files Browse the repository at this point in the history
Should've just done it in the first one. I forgot.
  • Loading branch information
digiwombat committed Jan 7, 2017
1 parent 0eb3818 commit 6fa8d05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,9 @@ function init()
});

$('#filter').on('keyup', function(){
var filter = jQuery(this).val();
var filter = removeDiacritics(jQuery(this).val());
jQuery("#list-holder li").each(function () {
if (jQuery(this).text().search(new RegExp(filter, "i")) < 0) {
if (removeDiacritics(jQuery(this).text()).search(new RegExp(filter, "i")) < 0) {
jQuery(this).hide();
} else {
jQuery(this).show();
Expand Down

0 comments on commit 6fa8d05

Please sign in to comment.