Skip to content

Commit

Permalink
fixes for FF
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit Kapadia committed Dec 24, 2012
1 parent f30058c commit 7959c65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/explore.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class Explore extends Controller
@hideAnimalMenu()

target = e.target
species = e.target.innerText
species = target.textContent or target.innerText
index = target.parentElement.dataset.index or target.parentElement.parentElement.dataset.index

@["species#{index}"] = target.dataset.animal or target.parentElement.dataset.animal
Expand Down Expand Up @@ -304,6 +304,7 @@ class Explore extends Controller
do (cacheKey) =>
$.ajax({url: url, beforeSend: @ajaxStart})
.pipe( (response) ->
response = JSON.parse(response) # Need to parse the JSON for FF to work
rows = response.rows
rows.map((d) -> d.the_geom = JSON.parse(d.the_geom))
return rows
Expand Down

0 comments on commit 7959c65

Please sign in to comment.