close menu here

This commit is contained in:
Ted Unangst 2019-10-03 16:08:31 -04:00
parent 26e9a9a232
commit d12cb164c2
1 changed files with 2 additions and 2 deletions

View File

@ -134,14 +134,14 @@ function switchtopage(name, arg) {
var args = hydrargs()
get("/hydra?" + encode(args), fillinhonks)
}
var topmenu = document.getElementById("topmenu")
topmenu.open = false
}
function newpagestate(name, arg) {
return { "name": name, "arg": arg }
}
function pageswitcher(name, arg) {
return function(evt) {
var topmenu = document.getElementById("topmenu")
topmenu.open = false
console.log("switching to", name +":"+arg)
if (name == curpagestate.name && arg == curpagestate.arg) {
console.log("skipping nav")