From e0d86bec7c9e8bedd1e71173b486668e16ec7c2e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 21 Jun 2024 17:02:46 +0200 Subject: fix: duplicated results tables via JS search --- frontend/static/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/static') 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); -- cgit 1.4.1