Permalink
Browse files

Merge branch 'need-more-cars-in-the-map' into techcrunch

  • Loading branch information...
2 parents e061916 + c9b110c commit a8fc47e027168a03b433d9c60c7048b511aab141 @jedahan jedahan committed Sep 12, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/public/scripts/lepidoptera.coffee
@@ -38,7 +38,7 @@ lepidoptera = ->
dom_resource = $("#resources > ##{resource_id}")
if not dom_resource[0]?
- dom_resource = $("#resources").append("<li class='resource alive' id='#{resource_id}'><h1 class='car_icon_wrapper'><span class='car_icon'>Car Icon</span></h1><span class='car_name'></span><ul class='feeds'></ul></li>")
+ dom_resource = $("#resources").prepend("<li class='resource alive' id='#{resource_id}'><h1 class='car_icon_wrapper'><span class='car_icon'>Car Icon</span></h1><span class='car_name'></span><ul class='feeds'></ul></li>")
dom_resource.toggleClass 'alive', alive
@@ -63,7 +63,7 @@ lepidoptera = ->
# see if we have a marker on the map for this resource
for m in markers
- marker = m if m.title is data.car_name
+ marker = m if m.title is data.resource_id
# if we don't, add it to the map. This may be better put in updatePresence
if not marker?
@@ -72,7 +72,7 @@ lepidoptera = ->
icon: "../images/icon-car-map-active.png"
map: mapGoogle
html: "<strong>#{data.car_name}</strong>"
- title: data.car_name
+ title: data.resource_id
infowindow = new google.maps.InfoWindow
google.maps.event.addListener marker, 'click', () ->

0 comments on commit a8fc47e

Please sign in to comment.