mirror of
https://github.com/loot/loot.github.io.git
synced 2026-07-27 14:13:30 -07:00
Start masterlist search on input change.
This catches pressing enter after typing in text, so the user doesn't then need to click the search button.
This commit is contained in:
@@ -102,6 +102,7 @@ for (var i=0; i < repos.length; ++i) {
|
||||
}
|
||||
|
||||
searchButton.addEventListener("click", onSearchInit, false);
|
||||
searchBox.addEventListener('change', onSearchInit, false);
|
||||
|
||||
/* If the page was loaded with a PHP-style GET string `?game=<game>&search=<search>`, read it for the search term and perform a search. */
|
||||
var pos = document.URL.indexOf("?game=");
|
||||
|
||||
Reference in New Issue
Block a user