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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user