X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/89fc5a7fdc07e8aa36c203c1ad1792b03467d44e..324c37a39ba7a59eee633f0b19203670d491b520:/app/assets/javascripts/index/notes.js.erb diff --git a/app/assets/javascripts/index/notes.js.erb b/app/assets/javascripts/index/notes.js.erb index 779ae1ab0..8b440910c 100644 --- a/app/assets/javascripts/index/notes.js.erb +++ b/app/assets/javascripts/index/notes.js.erb @@ -25,13 +25,12 @@ $(document).ready(function () { data: { lon: location.lon, lat: location.lat, - text: $(form.comment).val() + text: $(form.text).val() }, success: function (data) { map.noteSelector.unselect(feature); - feature.attributes.status = "open"; - feature.attributes.id = data; + feature.attributes = data.properties; map.noteLayer.drawFeature(feature);