Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed missing crap

  • Loading branch information...
commit ecae53f763ce7d7d2912bd880ad692f2794f6030 1 parent 886ea8c
@philipkd authored
View
2  app/views/reports/_map.html.erb
@@ -53,6 +53,8 @@ function success(position) {
<% if (@reports) %>
<% i = 0 %>
<% @reports.each do |report| %>
+ <% next if !(report.lat) || !(report.lon) || report.lon == "" || report.lat == "" %>
+
<% i += 1 %>
var latlng<%= i %> = new google.maps.LatLng(<%= report.lat %>, <%= report.lon %>);
View
1  app/views/reports/index.html.erb
@@ -21,7 +21,6 @@
</tr>
<% @reports.each do |report| %>
- <% next if !(report.lat) || !(report.lon) %>
<tr>
<td><%= report.lat %></td>
<td><%= report.lon %></td>
Please sign in to comment.
Something went wrong with that request. Please try again.