rely less on id for form updates

This commit is contained in:
Ted Unangst 2023-08-25 01:12:26 -04:00
parent dbff9a6151
commit bddd8554a2
1 changed files with 5 additions and 5 deletions

View File

@ -384,13 +384,13 @@ function hideelement(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.style.display = ""
el = document.getElementById("saveddonkxid")
el = el.nextSibling
el.value = ""
el = el.parentElement.nextSibling
el.style.display = ""
}
var checkinprec = 100.0
var gpsoptions = {