diff options
-rw-r--r-- | search.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/search.html b/search.html index 1ec7433..84d89a6 100644 --- a/search.html +++ b/search.html @@ -62,8 +62,10 @@ layout: page } document.getElementById("qterm").textContent = queryterm; }; - const qbox = document.getElementById("input_qterm"); document.getElementById("qsubmit").onclick = ev => { - alert(qbox.value); + const qbox = document.getElementById("input_qterm").value; + if (qbox.length !== 0) { + query(qbox); + } }; </script> |