minor, var cleanup + add TODO for render on map

This commit is contained in:
Sanj 2012-02-20 19:43:43 +05:30
parent 974a57ee1a
commit 087b2e5ab9

View File

@ -47,9 +47,10 @@ $(function() {
var url = API_BASE + name + "/" + $target.text();
$target.data("loading", true);
var $loading = $('<span />').addClass("loadingSpan").text("Loading...").appendTo($target);
$.getJSON(url, {}, function(area) {
$.getJSON(url, {}, function(obj) {
$loading.remove();
var stops = area.stops.features;
var stopsGeojson = obj.stops; //TODO: render filtered geojson with known geometries on map
var stops = stopsGeojson.features;
var $stopsList = getStopsList(stops);
$target.append($stopsList);
$target.data("hasList", true);