From 9f48cb1f3b676c35b23e5d84f856189d5f053c82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Thu, 25 Feb 2016 21:20:25 +0100 Subject: [PATCH] location: remove debug prints also some style corrections --- lib/infobox/location.js | 2 +- lib/infobox/main.js | 7 +++---- lib/map.js | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/infobox/location.js b/lib/infobox/location.js index 1080f44..c61d23d 100644 --- a/lib/infobox/location.js +++ b/lib/infobox/location.js @@ -43,7 +43,7 @@ define(function () { switch2plain() return false } - a1.href = config.siteURL + a1.href = "#" var a2 = document.createElement("a") a2.textContent = "uci" a2.onclick = function() { diff --git a/lib/infobox/main.js b/lib/infobox/main.js index 70b6a6e..deebc03 100644 --- a/lib/infobox/main.js +++ b/lib/infobox/main.js @@ -42,10 +42,9 @@ define(["infobox/link", "infobox/node", "infobox/location"], function (Link, Nod } self.gotoLocation = function (d) { - console.log("goto location called with ", d) - create() - new Location(config, el, router, d) - } + create() + new Location(config, el, router, d) + } return self } diff --git a/lib/map.js b/lib/map.js index d6bda4a..712839e 100644 --- a/lib/map.js +++ b/lib/map.js @@ -275,7 +275,6 @@ define(["map/clientlayer", "map/labelslayer", } function contextMenuGotoLocation(e) { - console.log("context menu called at ", e) router.gotoLocation(e.latlng) }