X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c9d1e557d0508e2d45e0179cf4af7d652d2bf8c8..85282f5cdd5b37016027feda0a16d8cbdc6a2581:/app/assets/javascripts/index.js diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index f16589eee..378244db4 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -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() {