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:
Oliver Hamlet
2015-02-04 22:55:07 +00:00
parent dd3f4505ad
commit 709e78790b
+1
View File
@@ -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=");