about summary refs log tree commit diff stats
path: root/frontend/static
diff options
context:
space:
mode:
authorAlan Pearce2024-06-21 17:02:46 +0200
committerAlan Pearce2024-06-21 17:02:46 +0200
commite0d86bec7c9e8bedd1e71173b486668e16ec7c2e (patch)
treed0cd4cad997b0dacfaa3722ec42bff29723e6aca /frontend/static
parentdbeddced4046cb5756af2604f5cb6734b3e7cee6 (diff)
downloadsearchix-e0d86bec7c9e8bedd1e71173b486668e16ec7c2e.tar.lz
searchix-e0d86bec7c9e8bedd1e71173b486668e16ec7c2e.tar.zst
searchix-e0d86bec7c9e8bedd1e71173b486668e16ec7c2e.zip
fix: duplicated results tables via JS search
Diffstat (limited to 'frontend/static')
-rw-r--r--frontend/static/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/static/search.js b/frontend/static/search.js
index df11d09..8baf9ed 100644
--- a/frontend/static/search.js
+++ b/frontend/static/search.js
@@ -7,7 +7,7 @@ let pagination = document.getElementById("pagination");
 
 const resultsRange = new Range();
 resultsRange.setStart(results, 0);
-resultsRange.setEnd(results, 0);
+resultsRange.setEnd(results, results.childNodes.length);
 
 const detailsRange = new Range();
 detailsRange.setStartAfter(dialog.firstElementChild);