summaryrefslogtreecommitdiff
path: root/haunt/static/js/section-folds.js
diff options
context:
space:
mode:
Diffstat (limited to 'haunt/static/js/section-folds.js')
-rw-r--r--haunt/static/js/section-folds.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/haunt/static/js/section-folds.js b/haunt/static/js/section-folds.js
index ed6507e..559dd9a 100644
--- a/haunt/static/js/section-folds.js
+++ b/haunt/static/js/section-folds.js
@@ -40,10 +40,9 @@ function handleFolds() {
// The text will be inside of an anchor, which we'll hook onto using an
// event listener.
let foldAnchor = document.createElement("a");
- foldAnchor.href = "#";
let foldText = document.createElement("p");
foldAnchor.appendChild(foldText);
- fold.parentNode.insertBefore(foldAnchor, fold);
+ fold.parentNode.insertBefore(foldAnchor, fold.nextSibling);
// The fold will start off in the "hidden" state.
let toggle = false;