]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/templates/notes/show.jst.ejs
Rework notes UI using leaflet
[rails.git] / app / assets / javascripts / templates / notes / show.jst.ejs
index cf8ea0a40ce2121fffb82f590efef120d01c905e..8b95fea2e3bdd75c578b83016e0ba74e667b5760 100644 (file)
@@ -16,8 +16,8 @@
     <textarea name="text" cols="40" rows="5"></textarea>
     <br/>
     <div class="buttons">
-      <input type="submit" name="close" value="<%- I18n.t('javascripts.notes.show.close') %>" id="note-close">
-      <input type="submit" name="comment" value="<%- I18n.t('javascripts.notes.show.comment') %>" id="note-comment">
+      <input type="submit" name="close" value="<%- I18n.t('javascripts.notes.show.close') %>" data-url="<%- note.close_url %>">
+      <input type="submit" name="comment" value="<%- I18n.t('javascripts.notes.show.comment') %>" data-url="<%- note.comment_url %>" disabled="1">
     </div>
   </form>
   <% } %>