Always show checked items in live search

If you’ve searched to select an item and then you want to perform an
action on it it’s confusing when it goes away if you change your search.

It should always be clear which items you’re performing an action on.
This means that checked items should always be visible, no matter what
your search term is.
This commit is contained in:
Chris Hill-Scott
2018-12-05 11:24:16 +00:00
parent 1a5ebb3e62
commit b7e9c1a3e4

View File

@@ -11,6 +11,11 @@
let content = $('.live-search-relevant', this).text() || $(this).text();
if ($(this).has(':checked').length) {
$(this).show();
return;
}
if (query == '') {
$(this).css('display', '');
return;