Search if the search input is not empty after page loads

Firefox remembers input on the same page if a normal reload is performed.
In this case the results for the search term should be shown automatically.
This commit is contained in:
Maximilian Krög
2020-02-16 23:15:25 +01:00
parent f7871d6103
commit d3b9b25429

View File

@@ -123,6 +123,9 @@ $(function () {
// Search Items // Search Items
searchInput.addEventListener('input', queueSearch); searchInput.addEventListener('input', queueSearch);
if (searchInput.value) {
doSearch(searchInput.value);
}
// Toggle when click an item element // Toggle when click an item element
$('.navigation').on('click', '.toggle', function (e) { $('.navigation').on('click', '.toggle', function (e) {