Commit 8a7457debaf4b2fd3b65503c83cb61abd3441a8e

Authored by Antonio Terceiro
1 parent 0279ca80

Remove annoying message from map

Showing 1 changed file with 1 additions and 7 deletions   Show diff stats
app/views/search/_google_maps.rhtml
@@ -55,22 +55,16 @@ if (GBrowserIsCompatible()) { @@ -55,22 +55,16 @@ if (GBrowserIsCompatible()) {
55 var icon = new GIcon(baseIcon, "<%= icon %>", null, "<%= icon_shadow %>"); 55 var icon = new GIcon(baseIcon, "<%= icon %>", null, "<%= icon_shadow %>");
56 56
57 <% 57 <%
58 - missed = false  
59 @results.each do |name,results| 58 @results.each do |name,results|
60 results.each do |item| 59 results.each do |item|
61 if item.lat && item.lng 60 if item.lat && item.lng
62 %> 61 %>
63 putMarker(<%= item.lat.to_json %>, <%= item.lng.to_json %>, <%= item.name.to_json %>, <%= display_item_map_info(item).to_json %>); 62 putMarker(<%= item.lat.to_json %>, <%= item.lng.to_json %>, <%= item.name.to_json %>, <%= display_item_map_info(item).to_json %>);
64 <% 63 <%
65 - else  
66 - missed = true  
67 - end 64 + end
68 end 65 end
69 end 66 end
70 %> 67 %>
71 - <% if missed %>  
72 - <%= "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 %>  
73 - <% end %>  
74 } 68 }
75 69
76 map.setZoom(map.getBoundsZoomLevel(bounds)); 70 map.setZoom(map.getBoundsZoomLevel(bounds));