diff --git a/views/honk.html b/views/honk.html index 241b30e..e8e407d 100644 --- a/views/honk.html +++ b/views/honk.html @@ -8,7 +8,7 @@ {{ end }}

{{ if $bonkcsrf }} -{{ .Username }} +{{ .Username }} {{ else }} {{ .Username }} {{ end }} diff --git a/views/honkpage.js b/views/honkpage.js index c59674c..76f39af 100644 --- a/views/honkpage.js +++ b/views/honkpage.js @@ -167,8 +167,10 @@ function relinklinks() { } els = document.getElementsByClassName("honkerlink") while (els.length) { - els[0].onclick = pageswitcher("honker", els[0].text) - els[0].classList.remove("honkerlink") + var el = els[0] + var xid = el.getAttribute("data-xid") + el.onclick = pageswitcher("honker", xid) + el.classList.remove("honkerlink") } } (function() {