From 3721a6a5db8dac73a2e6e3e379362fcf3d18d33f Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 16 Dec 2009 15:18:45 -0500 Subject: [PATCH] Always set the latlon value when we place the marker, not just when we successfully geocode --- kronolith/js/kronolith.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 45323b06f..cf5e08bec 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -3668,8 +3668,6 @@ KronolithCore = { r = r.shift(); ll = new OpenLayers.LonLat(r.lon, r.lat); this.placeMapMarker({ lat: r.lat, lon: r.lon }, true); - $('kronolithEventLocationLon').value = r.lon; - $('kronolithEventLocationLat').value = r.lat; }, geocode: function(a) { @@ -3697,6 +3695,8 @@ KronolithCore = { } else { this.map.moveMarker(this.mapMarker, ll); } + $('kronolithEventLocationLon').value = ll.lon; + $('kronolithEventLocationLat').value = ll.lat; if (center) { this.map.setCenter(ll, 8); //this.map.zoomToFit(); -- 2.11.0