about summary refs log tree commit diff stats
path: root/frontend/static/search.js
diff options
context:
space:
mode:
authorAlan Pearce2024-05-17 13:31:03 +0200
committerAlan Pearce2024-05-17 13:58:29 +0200
commit054d2b3bf7eb4c5a5401565e86031f22ea754062 (patch)
tree7f8b883b5ce8374d949004e4588395f90b2bbc3b /frontend/static/search.js
parentd6e117bb9aeb2bae23dedd51b59b6e6f139e8a4f (diff)
downloadsearchix-054d2b3bf7eb4c5a5401565e86031f22ea754062.tar.lz
searchix-054d2b3bf7eb4c5a5401565e86031f22ea754062.tar.zst
searchix-054d2b3bf7eb4c5a5401565e86031f22ea754062.zip
feat: improve accessibility and browser behaviour
Diffstat (limited to 'frontend/static/search.js')
-rw-r--r--frontend/static/search.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/static/search.js b/frontend/static/search.js
index 358de13..030a318 100644
--- a/frontend/static/search.js
+++ b/frontend/static/search.js
@@ -49,7 +49,9 @@ function paginationLinkClicked(ev) {
 }
 
 function addPaginationEventListeners(pagination) {
-  pagination.addEventListener("click", paginationLinkClicked);
+  Array.from(pagination.children).forEach((child) =>
+    child.addEventListener("click", paginationLinkClicked),
+  );
 }
 
 function renderFragmentHTML(html) {