From: Michael Orlitzky Date: Fri, 19 Feb 2010 15:08:28 +0000 (-0500) Subject: Renamed the MapUtils class to Form. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=dfecbff32580677363ff4a5fbedce116f32bf8e7;p=dead%2Fcensus-tools.git Renamed the MapUtils class to Form. --- diff --git a/www/maps/maps/public/javascripts/maputils.js b/www/maps/maps/public/javascripts/maputils.js index 3d1f2e5..3e7ecba 100644 --- a/www/maps/maps/public/javascripts/maputils.js +++ b/www/maps/maps/public/javascripts/maputils.js @@ -1,4 +1,4 @@ -function MapUtils() { +function Form() { this.post_data = function(url, data) { /* Create a new form, and add it to the DOM. Then, create a hidden diff --git a/www/maps/maps/templates/javascript/routing.mako b/www/maps/maps/templates/javascript/routing.mako index 49e10b7..e399959 100644 --- a/www/maps/maps/templates/javascript/routing.mako +++ b/www/maps/maps/templates/javascript/routing.mako @@ -49,8 +49,8 @@ function routing_callback(result, status) { if (completed_requests == total_requests) { // Close the array, and do something with the result. json_string += ']'; - mu = new MapUtils(); - mu.post_data('/directions/json_to_kml', json_string); + var F = new Form(); + F.post_data('/directions/json_to_kml', json_string); } else { // Continue the array. diff --git a/www/maps/maps/templates/location/route.mako b/www/maps/maps/templates/location/route.mako index 9ec8279..95fc95a 100644 --- a/www/maps/maps/templates/location/route.mako +++ b/www/maps/maps/templates/location/route.mako @@ -10,4 +10,4 @@ \ No newline at end of file +