rely less on id for form updates
This commit is contained in:
parent
dbff9a6151
commit
bddd8554a2
|
@ -384,13 +384,13 @@ function hideelement(el) {
|
||||||
if (!el) return
|
if (!el) return
|
||||||
el.style.display = "none"
|
el.style.display = "none"
|
||||||
}
|
}
|
||||||
function updatedonker() {
|
function updatedonker(ev) {
|
||||||
var el = document.getElementById("donker")
|
var el = ev.target.parentElement
|
||||||
el.children[1].textContent = el.children[0].value.slice(-20)
|
el.children[1].textContent = el.children[0].value.slice(-20)
|
||||||
el = document.getElementById("donkdescriptor")
|
el = el.nextSibling
|
||||||
el.style.display = ""
|
|
||||||
el = document.getElementById("saveddonkxid")
|
|
||||||
el.value = ""
|
el.value = ""
|
||||||
|
el = el.parentElement.nextSibling
|
||||||
|
el.style.display = ""
|
||||||
}
|
}
|
||||||
var checkinprec = 100.0
|
var checkinprec = 100.0
|
||||||
var gpsoptions = {
|
var gpsoptions = {
|
||||||
|
|
Loading…
Reference in New Issue