]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entry/edit.html.erb
Merge branch 'master' into notes
[rails.git] / app / views / diary_entry / edit.html.erb
index e6674742fc5853f9f4dfca516e4c72e9f13684f7..0c83ef4ce3dcd75018579dde245a71dd0b1f4ccc 100644 (file)
@@ -2,7 +2,9 @@
   <%= javascript_include_tag "diary_entry" %>
 <% end %>
 
-<h1><%= @title %></h1>
+<% content_for :heading do %>
+  <h1><%= @title %></h1>
+<% end %>
 
 <%= error_messages_for 'diary_entry' %>
 
@@ -25,7 +27,7 @@
       <td>
         <%= content_tag "div", "", :id => "map", :data => {:lat => @lat, :lon => @lon, :zoom => @zoom} %>
         <span class="location"><%= t 'diary_entry.edit.latitude' -%> <%= f.text_field :latitude, :size => 20, :id => "latitude" %> <%= t 'diary_entry.edit.longitude' -%> <%= f.text_field :longitude, :size => 20, :id => "longitude" %></span>
-        <a href="javascript:openMap()" id="usemap"><%= t 'diary_entry.edit.use_map_link' -%></a>
+        <a href="#" id="usemap"><%= t 'diary_entry.edit.use_map_link' -%></a>
         <br/><br/>
       </td>
     </tr>