rely less on id for form updates
Ted Unangst tedu@tedunangst.com
Fri, 25 Aug 2023 01:12:26 -0400
1 files changed,
5 insertions(+),
5 deletions(-)
jump to
M
views/honkpage.js
→
views/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 = {