codeforboston / pantry_pickup

Combining city data with a list of specific needs from food pantries will allow citizens to most effectively make useful and needed donations assisted by the Pantry Pick-Up App.
http://www.pantrypickup.org
21 stars 35 forks source link

Clicking pantry in map view should scroll its element in left-hand list into view #34

Closed fabacab closed 11 years ago

fabacab commented 11 years ago

When you click on a pantry in the left-hand list, the map re-centers on the pantry's marker in the map view, however, the inverse does not work: clicking on a pantry in the map view doesn't scroll the pantry's item in the list into view. It should probably do that.

carpeliam commented 11 years ago

Good suggestion, added in d59dcdcffb. I pulled in a sensible jQuery plugin to do the scrolling (it only scrolls if the selected pantry isn't already visible).