]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/notes.js.erb
Set attributes on newly created notes
[rails.git] / app / assets / javascripts / index / notes.js.erb
index 779ae1ab086d1ceda39d84ed74c073bc2b0471b7..9c7d001763c70d24de6eef64f6fbc36ef0050bd6 100644 (file)
@@ -30,8 +30,7 @@ $(document).ready(function () {
       success: function (data) {
         map.noteSelector.unselect(feature);
 
-        feature.attributes.status = "open";
-        feature.attributes.id = data;
+        feature.attributes = data.properties;
 
         map.noteLayer.drawFeature(feature);