From 8dfecbfbb2b246440fd09a0a4c2190c26a20b37e Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 14 Aug 2007 10:44:56 +0000 Subject: [PATCH] Only the view and edit tabs really need updating when the map moves. --- public/javascripts/site.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/public/javascripts/site.js b/public/javascripts/site.js index 55d33d992..95ef1f536 100644 --- a/public/javascripts/site.js +++ b/public/javascripts/site.js @@ -1,17 +1,8 @@ function updatelinks(lon,lat,zoom,layers) { - var links = new Object(); - links['viewanchor'] = '/index.html'; - //links['editanchor'] = 'edit.html'; - links['uploadanchor'] = '/traces'; - links['loginanchor'] = '/login.html'; - links['logoutanchor'] = '/logout.html'; - links['registeranchor'] = '/create-account.html'; - var node; - var anchor; - for (anchor in links) { - node = document.getElementById(anchor); - if (! node) { continue; } + + node = document.getElementById("viewanchor"); + if (node) { var args = getArgs(node.href); args["lat"] = lat; args["lon"] = lon; -- 2.43.2