From 709e78790bd9dc66246994f55bf3463ff3d705eb Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Wed, 4 Feb 2015 22:55:07 +0000 Subject: [PATCH] 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. --- js/search.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/search.js b/js/search.js index 9558c7f..85f9232 100644 --- a/js/search.js +++ b/js/search.js @@ -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=&search=`, read it for the search term and perform a search. */ var pos = document.URL.indexOf("?game=");