From 8a7457debaf4b2fd3b65503c83cb61abd3441a8e Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Sat, 14 Aug 2010 20:44:48 -0300 Subject: [PATCH] Remove annoying message from map --- app/views/search/_google_maps.rhtml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/views/search/_google_maps.rhtml b/app/views/search/_google_maps.rhtml index 0f8b825..ea27e49 100644 --- a/app/views/search/_google_maps.rhtml +++ b/app/views/search/_google_maps.rhtml @@ -55,22 +55,16 @@ if (GBrowserIsCompatible()) { var icon = new GIcon(baseIcon, "<%= icon %>", null, "<%= icon_shadow %>"); <% - missed = false @results.each do |name,results| results.each do |item| if item.lat && item.lng %> putMarker(<%= item.lat.to_json %>, <%= item.lng.to_json %>, <%= item.name.to_json %>, <%= display_item_map_info(item).to_json %>); <% - else - missed = true - end + end end end %> - <% if missed %> - <%= "map.openInfoWindowHtml(centerPoint, %s);" % _("One or more items don't have geographical information, and won't be shown in the map. Choose \"Display in list\" to see them.").to_json %> - <% end %> } map.setZoom(map.getBoundsZoomLevel(bounds)); -- libgit2 0.21.2