From 087b2e5ab97020e85a5965783bae22460de6575f Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 20 Feb 2012 19:43:43 +0530 Subject: [PATCH] minor, var cleanup + add TODO for render on map --- chaloBEST/static/js/editstops.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chaloBEST/static/js/editstops.js b/chaloBEST/static/js/editstops.js index 322cd7e..18aa3ce 100644 --- a/chaloBEST/static/js/editstops.js +++ b/chaloBEST/static/js/editstops.js @@ -47,9 +47,10 @@ $(function() { var url = API_BASE + name + "/" + $target.text(); $target.data("loading", true); var $loading = $('').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);