]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entry/edit.html.erb
Reduce interpolation in export/start.js.erb
[rails.git] / app / views / diary_entry / edit.html.erb
index da409e61a0d40494b586641f1b26bf4fb11d4a99..54ed0cc70ec94ec49d644d6fbc5632980b432973 100644 (file)
@@ -10,7 +10,7 @@
     </tr>
     <tr valign="top">
       <td class="fieldName"><%= t 'diary_entry.edit.body' -%></td>
-      <td><%= richtext_area :diary_entry, :body, :cols => 80 %></td>
+      <td><%= richtext_area :diary_entry, :body, :cols => 80, :format => @diary_entry.body_format %></td>
     </tr>
     <tr valign="top">
       <td class="fieldName"><%= t 'diary_entry.edit.language' -%></td>
@@ -56,9 +56,7 @@
   <!--
   var marker;
 
-  OpenLayers.Lang.setCode("<%= I18n.locale.to_s %>");
-
-  function setLocation( e ) { 
+  function setLocation( e ) {
     closeMapPopup();
 
     var lonlat = getEventPosition(e);