]> git.openstreetmap.org Git - rails.git/commitdiff
Set longitude correctly in "where am I" lookups from the edit page
authorTom Hughes <tom@compton.nu>
Mon, 12 Aug 2013 22:58:34 +0000 (23:58 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 12 Aug 2013 22:58:34 +0000 (23:58 +0100)
app/assets/javascripts/edit.js

index 642aa9bda11ba5d630dfeb7c814ca545971ed5a5..7de65190eb609d6e3db14fac84d237989fc8e31c 100644 (file)
@@ -24,7 +24,7 @@ $(document).ready(function () {
     $("#sidebar_title").html(I18n.t('site.sidebar.search_results'));
     $("#sidebar_content").load($(this).attr("href"), {
       lat: mapParams.lat,
-      lon: mapParams.lng,
+      lon: mapParams.lon,
       zoom: mapParams.zoom
     }, openSidebar);    
   });