Add the marker to the map correctly.
authorTom Hughes <tom@compton.nu>
Fri, 9 May 2008 14:10:10 +0000 (14:10 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 9 May 2008 14:10:10 +0000 (14:10 +0000)
app/views/diary_entry/new.rhtml

index 6c40eaeb58af046d383bb988b20816f823055e56..0a5203a66053ce49f2e5c8eaf9f62974c6efa982 100644 (file)
@@ -66,7 +66,7 @@
       removeMarkerFromMap(marker);
     }
 
-    marker = addMarkerToMap(merc, null, "Diary entry location");
+    marker = addMarkerToMap(lonlat, null, "Diary entry location");
   }
 
   function openMap() {