From 484f549783e4adaa6a77f0e687f0a41fc30bd06b Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 22 Feb 2012 18:17:09 +0530 Subject: [PATCH] commit property name changes back to client side state with bugs fixed --- chaloBEST/static/js/editstops.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chaloBEST/static/js/editstops.js b/chaloBEST/static/js/editstops.js index be057ef..8b8d85c 100644 --- a/chaloBEST/static/js/editstops.js +++ b/chaloBEST/static/js/editstops.js @@ -195,7 +195,7 @@ var API_BASE = "/1.0/", var $lon_input = $('').attr("type", "hidden").val(lon).attr("id", "lon").appendTo($form); $form.submit(function(e) { e.preventDefault(); - var oldProps = $('.selectedStopItem').data("properties"); + var oldProps = $('.selectedStop').data("properties"); var geojson = { 'type': 'Feature', @@ -210,7 +210,7 @@ var API_BASE = "/1.0/", } }; var props = $.extend(oldProps, geojson.properties); - $('.selectedStopItem').data("properties", props); + $('.selectedStop').data("properties", props); var geojsonString = JSON.stringify(geojson); //console.log(geojsonString); var url = API_BASE + "stop/" + stop.slug + "?srid=3857";