]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Add note selection to the sidebar
[rails.git] / app / assets / javascripts / index.js
index f16589eeefffe53d3d6cd12e81fc532c5760d26e..378244db466d3c3232590bbe066ceb79fecf40e5 100644 (file)
@@ -203,11 +203,7 @@ $(document).ready(function () {
     page.load = function(path, type, id) {
       if (OSM.STATUS === 'api_offline' || OSM.STATUS === 'database_offline') return;
 
-      if (type === 'note') {
-        map.noteLayer.showNote(parseInt(id));
-      } else {
-        map.addObject({type: type, id: parseInt(id)}, {zoom: true});
-      }
+      map.addObject({type: type, id: parseInt(id)}, {zoom: true});
     };
 
     page.unload = function() {