X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/716262f211a8983a4272eabf3fdba9877b068b65..5c74a6517cbc5aa4aa958abd0737da8892f58a45:/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..f6273a828 100644 --- a/app/views/diary_entry/edit.html.erb +++ b/app/views/diary_entry/edit.html.erb @@ -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 %>;