]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/note.js.erb
Fix new note wrapping
[rails.git] / app / assets / javascripts / index / note.js.erb
index a98cea307a4aa39c097410ff1244933b569be55a..09044bf0ef35219a477a9495ab5cda5d30cc6172 100644 (file)
@@ -70,7 +70,7 @@ OSM.Note = function (map) {
 
     var data = $('.details').data();
     if (!noteState) map.addLayer(noteLayer);
-    if (window.location.hash == "") {
+    if (!window.location.hash) {
       var coords = data.coordinates.split(',');
       OSM.route.moveListenerOff();
       map.once('moveend', OSM.route.moveListenerOn);