aboutsummaryrefslogtreecommitdiff
path: root/static/js/fixedsearch.ts
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2024-02-24 18:33:47 -0500
committertdro <tdro@noreply.example.com>2024-02-24 18:33:47 -0500
commite68fb9110dde654d5a830a110d20694352b6eaca (patch)
tree607b3040d0e85d5a8bba444fdd6890cf39006ebe /static/js/fixedsearch.ts
parent0681f6d1d7cff09835bb9ade250fbb490e3ede28 (diff)
downloadcanory-e68fb9110dde654d5a830a110d20694352b6eaca.tar.gz
canory-e68fb9110dde654d5a830a110d20694352b6eaca.tar.bz2
canory-e68fb9110dde654d5a830a110d20694352b6eaca.zip
themes/default/layouts/_default/home.xslt: Add scripts
Diffstat (limited to 'static/js/fixedsearch.ts')
-rw-r--r--static/js/fixedsearch.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/static/js/fixedsearch.ts b/static/js/fixedsearch.ts
index 01dd917..f933dd7 100644
--- a/static/js/fixedsearch.ts
+++ b/static/js/fixedsearch.ts
@@ -42,6 +42,8 @@
let selected;
+ if (submit === null) return;
+
submit.addEventListener("click", function (event) {
if (selected) {
event.preventDefault();