mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Redo existing search after applying checkbox filters.
This commit is contained in:
@@ -109,6 +109,10 @@ searchTarget is the ID of the core-list element to search the elements of.
|
||||
document.getElementById(host.searchTarget).scrollToItem(host.results[host.currentResult]);
|
||||
},
|
||||
|
||||
search: function() {
|
||||
this.shadowRoot.getElementById('search').dispatchEvent(new Event('input'));
|
||||
},
|
||||
|
||||
onSearch: function(evt) {
|
||||
var needle = evt.target.value.toLowerCase();
|
||||
var host = evt.target.parentElement.parentNode.host;
|
||||
|
||||
@@ -211,6 +211,10 @@ function setFilteredUIData() {
|
||||
cards[i].onMessagesChange();
|
||||
}
|
||||
}
|
||||
|
||||
/* Now perform search again. If there is no current search, this won't
|
||||
do anything. */
|
||||
document.getElementById('searchBar').search();
|
||||
});
|
||||
}
|
||||
function restoreFilterStates() {
|
||||
|
||||
Reference in New Issue
Block a user