Redo existing search after applying checkbox filters.

This commit is contained in:
Oliver Hamlet
2015-05-26 21:54:46 +01:00
parent 49cb3a3bcb
commit d47d9f6bdc
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -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;
+4
View File
@@ -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() {