X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/716262f211a8983a4272eabf3fdba9877b068b65..917d7324a6f1d3f6256b1a541a912ccee84097d1:/app/views/diary_entry/edit.html.erb 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 %>;