]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/templates/notes/new.jst.ejs
Enable the "add note" link after a new note is created
[rails.git] / app / assets / javascripts / templates / notes / new.jst.ejs
index a2796a7a265af17f7768b281dfd5873ebb4bf684..0b074ec3b8d5870141ecaa75bd29b3310353dfee 100644 (file)
@@ -1,15 +1,12 @@
 <div class="note">
-  <p>
-    <%- I18n.t('javascripts.notes.new.intro_1') %><br/>
-    <%- I18n.t('javascripts.notes.new.intro_2') %>
-  </p>
+  <p><%- I18n.t('javascripts.notes.new.intro') %></p>
   <form action="#">
     <input type="hidden" name="lon">
     <input type="hidden" name="lat">
-    <textarea name="text" cols="40" rows="10"></textarea>
+    <textarea class="comment" name="text" cols="40" rows="10"></textarea>
     <br/>
     <div class="buttons">
-      <input type="submit" name="add" value="<%- I18n.t('javascripts.notes.new.add') %>" id="note-add">
+      <input type="submit" name="add" value="<%- I18n.t('javascripts.notes.new.add') %>" data-url="<%- create_url %>">
     </div>
   </form>
 </div>