From d12cb164c2d576859961e30f15fc32c12ce445a4 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Thu, 3 Oct 2019 16:08:31 -0400 Subject: [PATCH] close menu here --- views/honkpage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/honkpage.js b/views/honkpage.js index 85514ff..c59674c 100644 --- a/views/honkpage.js +++ b/views/honkpage.js @@ -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")