]> git.openstreetmap.org Git - rails.git/blobdiff - public/javascripts/site.js
Upgrade to rails 3.1.0
[rails.git] / public / javascripts / site.js
diff --git a/public/javascripts/site.js b/public/javascripts/site.js
deleted file mode 100644 (file)
index 75c3eb5..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-function updatelinks(lon,lat,zoom) {
-    var links = new Array();
-    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.href = links[anchor] + "?lat=" + lat + "&lon=" + lon + "&zoom=" + zoom;
-    }
-
-    node = document.getElementById("editanchor");
-    if (node) {
-    if ( zoom >= 14) {
-        node.href = '/edit.html?lat=' + lat + '&lon=' + lon + "&zoom=" + zoom;
-       node.style.fontStyle = 'normal';
-    } else {
-        node.href = 'javascript:alert("zoom in to edit map");';
-       node.style.fontStyle = 'italic';
-    }
-    }
-}