X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/716262f211a8983a4272eabf3fdba9877b068b65..dd3b577bd5bbe4f9d9d1cac8e0f328a16b75f7f5:/app/views/diary_entry/edit.html.erb?ds=inline diff --git a/app/views/diary_entry/edit.html.erb b/app/views/diary_entry/edit.html.erb index 8c054bb8b..6b4d9c177 100644 --- a/app/views/diary_entry/edit.html.erb +++ b/app/views/diary_entry/edit.html.erb @@ -10,7 +10,7 @@ <%= t 'diary_entry.edit.body' -%> - <%= f.text_area :body, :cols => 80 %> + <%= richtext_area :diary_entry, :body, :cols => 80, :format => @diary_entry.body_format %> <%= t 'diary_entry.edit.language' -%> @@ -63,8 +63,8 @@ var lonlat = getEventPosition(e); - $("latitude").value = lonlat.lat; - $("longitude").value = lonlat.lon; + $("#latitude").val(lonlat.lat); + $("#longitude").val(lonlat.lon); if (marker) { removeMarkerFromMap(marker); @@ -74,8 +74,8 @@ } function openMap() { - $("map").style.display = "block"; - $("usemap").style.display = "none"; + $("#map").show(); + $("#usemap").hide(); var centre = new OpenLayers.LonLat(<%= lon %>, <%= lat %>); var zoom = <%= zoom %>;