codeforamerica/citygram — pull request #123 by chriswhong (2014-10-07 05:05:42+00:00)
Title: Adding Map to Digests

Added a map to the digests page.

Uses erb to inject event objects into javascript, had to move loading of jquery to

so I could use .ready(). (It has occurred to me that there is an API endpoint to get events within a geom, and that is probably a better method)

Tried to use as much of scripts.js as possible since it's already loading, however now the map is initializing twice causing an error.

Is there some way to add all of this to scripts.js as a function and then only call that function when the digests page is loaded?