From dfecbff32580677363ff4a5fbedce116f32bf8e7 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 19 Feb 2010 10:08:28 -0500 Subject: [PATCH] Renamed the MapUtils class to Form. --- www/maps/maps/public/javascripts/maputils.js | 2 +- www/maps/maps/templates/javascript/routing.mako | 4 ++-- www/maps/maps/templates/location/route.mako | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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 + -- 2.43.2