success: function (data) {
map.noteSelector.unselect(feature);
- feature.attributes.status = "open";
- feature.attributes.id = data;
+ feature.attributes = data.properties;
map.noteLayer.drawFeature(feature);
<form action="#">
<input type="hidden" name="lon">
<input type="hidden" name="lat">
- <textarea name="comment" cols="40" rows="10"></textarea>
+ <textarea name="text" cols="40" rows="10"></textarea>
<br/>
<input type="submit" name="add" value="<%- I18n.t('javascripts.notes.new.add') %>" id="note-add">
</form>
<div id="permalink">
<a href="/" id="permalinkanchor" class="geolink llz layers object"><%= t 'site.index.permalink' %></a>
<a href="/" id="shortlinkanchor"><%= t 'site.index.shortlink' %></a>
- <%= link_to t("site.index.createnote"), notes_url,
+ <%= link_to t("site.index.createnote"), notes_url(:format => :json),
:id => "createnoteanchor",
:data => { :minzoom => 12 },
:title => "javascripts.site.createnote_tooltip",