Skip to content

Conversation

lada
Copy link

@lada lada commented May 15, 2020

Adds a search field which allows to filter the translations by key as you type

$('#search-field').keyup(function() {
var searchKey = $(this).val().toUpperCase();
Object.keys(rowsById).forEach(function(key) {
rowsById[key].toggle(!searchKey || key.includes(searchKey));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to replace key.includes(searchKey) with key.toUpperCase().includes(searchKey).
Otherwise very good. Good Job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants