Commit 8a7457debaf4b2fd3b65503c83cb61abd3441a8e
1 parent
0279ca80
Exists in
staging
and in
26 other branches
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 | 55 | var icon = new GIcon(baseIcon, "<%= icon %>", null, "<%= icon_shadow %>"); |
| 56 | 56 | |
| 57 | 57 | <% |
| 58 | - missed = false | |
| 59 | 58 | @results.each do |name,results| |
| 60 | 59 | results.each do |item| |
| 61 | 60 | if item.lat && item.lng |
| 62 | 61 | %> |
| 63 | 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 | 65 | end |
| 69 | 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 | 70 | map.setZoom(map.getBoundsZoomLevel(bounds)); | ... | ... |