summaryrefslogtreecommitdiff
path: root/search.html
diff options
context:
space:
mode:
Diffstat (limited to 'search.html')
-rw-r--r--search.html6
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>