From: John Firebaugh Date: Thu, 11 Jul 2013 19:57:19 +0000 (-0700) Subject: Fix search X-Git-Tag: live~4850^2~8 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/d9f3ceed958a1d39b17bc4719b59ef8a226ace70 Fix search --- diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index e615902d1..0ec9b388c 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -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();