js lint from kuijsten
This commit is contained in:
parent
ca9f48106c
commit
b6efa7d4bd
|
@ -139,7 +139,6 @@ function fillinhonks(xhr, glowit) {
|
||||||
} else {
|
} else {
|
||||||
holder.append(h)
|
holder.append(h)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
relinklinks()
|
relinklinks()
|
||||||
return lenhonks
|
return lenhonks
|
||||||
|
@ -212,7 +211,7 @@ function switchtopage(name, arg) {
|
||||||
curpagestate.name = name
|
curpagestate.name = name
|
||||||
curpagestate.arg = arg
|
curpagestate.arg = arg
|
||||||
// get the holder for the target page
|
// get the holder for the target page
|
||||||
var stash = name + ":" + arg
|
stash = name + ":" + arg
|
||||||
holder = honksforpage[stash]
|
holder = honksforpage[stash]
|
||||||
if (holder) {
|
if (holder) {
|
||||||
honksonpage.prepend(holder)
|
honksonpage.prepend(holder)
|
||||||
|
@ -226,7 +225,7 @@ function switchtopage(name, arg) {
|
||||||
var args = hydrargs()
|
var args = hydrargs()
|
||||||
get("/hydra?" + encode(args), function(xhr) {
|
get("/hydra?" + encode(args), function(xhr) {
|
||||||
if (xhr.status == 200) {
|
if (xhr.status == 200) {
|
||||||
var lenhonks = fillinhonks(xhr, false)
|
fillinhonks(xhr, false)
|
||||||
} else {
|
} else {
|
||||||
refreshupdate(" status: " + xhr.status)
|
refreshupdate(" status: " + xhr.status)
|
||||||
}
|
}
|
||||||
|
@ -352,6 +351,7 @@ function showhonkform(elem, rid, hname) {
|
||||||
elem.insertAdjacentElement('afterend', form)
|
elem.insertAdjacentElement('afterend', form)
|
||||||
}
|
}
|
||||||
var ridinput = document.getElementById("ridinput")
|
var ridinput = document.getElementById("ridinput")
|
||||||
|
var honknoise = document.getElementById("honknoise")
|
||||||
if (rid) {
|
if (rid) {
|
||||||
ridinput.value = rid
|
ridinput.value = rid
|
||||||
if (hname) {
|
if (hname) {
|
||||||
|
@ -365,7 +365,7 @@ function showhonkform(elem, rid, hname) {
|
||||||
}
|
}
|
||||||
var updateinput = document.getElementById("updatexidinput")
|
var updateinput = document.getElementById("updatexidinput")
|
||||||
updateinput.value = ""
|
updateinput.value = ""
|
||||||
document.getElementById("honknoise").focus()
|
honknoise.focus()
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
function cancelhonking() {
|
function cancelhonking() {
|
||||||
|
@ -387,9 +387,9 @@ function hideelement(el) {
|
||||||
function updatedonker() {
|
function updatedonker() {
|
||||||
var el = document.getElementById("donker")
|
var el = document.getElementById("donker")
|
||||||
el.children[1].textContent = el.children[0].value.slice(-20)
|
el.children[1].textContent = el.children[0].value.slice(-20)
|
||||||
var el = document.getElementById("donkdescriptor")
|
el = document.getElementById("donkdescriptor")
|
||||||
el.style.display = ""
|
el.style.display = ""
|
||||||
var el = document.getElementById("saveddonkxid")
|
el = document.getElementById("saveddonkxid")
|
||||||
el.value = ""
|
el.value = ""
|
||||||
}
|
}
|
||||||
var checkinprec = 100.0
|
var checkinprec = 100.0
|
||||||
|
@ -411,7 +411,7 @@ function fillcheckin() {
|
||||||
gpsoptions.timeout = 2000
|
gpsoptions.timeout = 2000
|
||||||
}, function(err) {
|
}, function(err) {
|
||||||
showelement("placedescriptor")
|
showelement("placedescriptor")
|
||||||
el = document.getElementById("placenameinput")
|
var el = document.getElementById("placenameinput")
|
||||||
el.value = err.message
|
el.value = err.message
|
||||||
}, gpsoptions)
|
}, gpsoptions)
|
||||||
}
|
}
|
||||||
|
@ -422,8 +422,8 @@ function addemu(elem) {
|
||||||
box.value += data;
|
box.value += data;
|
||||||
}
|
}
|
||||||
function loademus() {
|
function loademus() {
|
||||||
div = document.getElementById("emupicker")
|
var div = document.getElementById("emupicker")
|
||||||
request = new XMLHttpRequest()
|
var request = new XMLHttpRequest()
|
||||||
request.open('GET', '/emus')
|
request.open('GET', '/emus')
|
||||||
request.onload = function() {
|
request.onload = function() {
|
||||||
div.innerHTML = request.responseText
|
div.innerHTML = request.responseText
|
||||||
|
|
Loading…
Reference in New Issue