]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/osm.js.erb
Disable "Add Note" button when there is no text
[rails.git] / app / assets / javascripts / osm.js.erb
index ebd97f39be048a945b8f9e13e53bd215a4b23c50..81c1e315217711a2c5d23631c4b8b0802dc2fb1d 100644 (file)
@@ -113,6 +113,10 @@ OSM = {
 
     mapParams.notes = params.notes == "yes";
 
+    if (params.note) {
+      mapParams.note = parseInt(params.note);
+    }
+
     var scale = parseFloat(params.scale);
     if (scale > 0) {
       mapParams.zoom = Math.log(360.0 / (scale * 512.0)) / Math.log(2.0);