all repos — honk @ 3c5b87be6797250e6ff6b341bdbf7a052cf43c92

my fork of honk

rely less on id for form updates
Ted Unangst tedu@tedunangst.com
Fri, 25 Aug 2023 01:12:26 -0400
commit

3c5b87be6797250e6ff6b341bdbf7a052cf43c92

parent

25b590d8113aea735e25e2b2764074cea44e6e6a

1 files changed, 5 insertions(+), 5 deletions(-)

jump to
M views/honkpage.jsviews/honkpage.js

@@ -384,13 +384,13 @@ el = document.getElementById(el)

if (!el) return el.style.display = "none" } -function updatedonker() { - var el = document.getElementById("donker") +function updatedonker(ev) { + var el = ev.target.parentElement el.children[1].textContent = el.children[0].value.slice(-20) - el = document.getElementById("donkdescriptor") + el = el.nextSibling + el.value = "" + el = el.parentElement.nextSibling el.style.display = "" - el = document.getElementById("saveddonkxid") - el.value = "" } var checkinprec = 100.0 var gpsoptions = {