]> git.openstreetmap.org Git - rails.git/commitdiff
Fix search
authorJohn Firebaugh <john.firebaugh@gmail.com>
Thu, 11 Jul 2013 19:57:19 +0000 (12:57 -0700)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Thu, 18 Jul 2013 17:45:17 +0000 (10:45 -0700)
app/assets/javascripts/index.js

index e615902d1363d9cd0d357c499d603f10b69471db..0ec9b388c844eef59d461f4e234a2dc5ba46896d 100644 (file)
@@ -209,10 +209,10 @@ function submitSearch(map) {
     $("#sidebar_title").html(I18n.t('site.sidebar.search_results'));
     $("#sidebar_content").load($(this).attr("action"), {
       query: $("#query").val(),
-      minlon: bounds.getWestLng(),
-      minlat: bounds.getSouthLat(),
-      maxlon: bounds.getEastLng(),
-      maxlat: bounds.getNorthLat()
+      minlon: bounds.getWest(),
+      minlat: bounds.getSouth(),
+      maxlon: bounds.getEast(),
+      maxlat: bounds.getNorth()
     }, openSidebar);
 
     return e.preventDefault();