From a172d9c91ec2b7d9b7abb91034d0dfb1509e4271 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 28 Sep 2019 00:16:43 -0400 Subject: [PATCH] try to fix the geo error handling --- views/honkpage.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/views/honkpage.js b/views/honkpage.js index 0e9147a..2d6acbe 100644 --- a/views/honkpage.js +++ b/views/honkpage.js @@ -213,8 +213,10 @@ function fillcheckin() { el = document.getElementById("placelonginput") el.value = Math.round(pos.coords.longitude * precision) / precision }, function(err) { - var el = document.getElementById("placenamenput") - el.innerHTML = err.message + var el = document.getElementById("placedescriptor") + el.style.display = "block" + el = document.getElementById("placenameinput") + el.value = err.message }) } }