From 78b7fab0e772c3b71d8295bebd73bfab79be60e6 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Mon, 28 Aug 2017 12:56:55 +1000 Subject: [PATCH] Fixed IE compatibility --- public_html/index.html | 1 + public_html/utilities.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public_html/index.html b/public_html/index.html index dc03d92..ac34477 100644 --- a/public_html/index.html +++ b/public_html/index.html @@ -1,3 +1,4 @@ + diff --git a/public_html/utilities.js b/public_html/utilities.js index 9b6a072..3a46878 100644 --- a/public_html/utilities.js +++ b/public_html/utilities.js @@ -160,10 +160,10 @@ function buildSearchBar(searchCallback, callbackArg) { button.id = "searchButton"; button.className = "ui button"; button.innerHTML = "Search"; - button.onclick = () => { searchCallback(input.value, callbackArg); }; + button.onclick = function() { searchCallback(input.value, callbackArg); }; div.appendChild(button); //hack - input.onkeypress = (e) => { if (e && e.keyCode == 13) { button.click(); } }; + input.onkeypress = function(e) { if (e && e.keyCode == 13) { button.click(); } }; return div; }