]> gitweb.michael.orlitzky.com - dead/census-tools.git/commitdiff
Renamed the MapUtils class to Form.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 19 Feb 2010 15:08:28 +0000 (10:08 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 19 Feb 2010 15:08:28 +0000 (10:08 -0500)
www/maps/maps/public/javascripts/maputils.js
www/maps/maps/templates/javascript/routing.mako
www/maps/maps/templates/location/route.mako

index 3d1f2e5cecba3cd9d067f71f1a78aefbaae5a038..3e7ecbaa611e4a5449ea214d605afca58d9f0c96 100644 (file)
@@ -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
index 49e10b74d21274cbd867f153e7560053b0401272..e399959a5af1cfe738257e645ad78100291e7e6e 100644 (file)
@@ -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.
index 9ec82791a2fa4997c43ef743280bd9f8e64e661b..95fc95a945aa4ac0be2f31638da140de61700ceb 100644 (file)
@@ -10,4 +10,4 @@
 
 <script type="text/javascript">
 ${c.js}
-</script>
\ No newline at end of file
+</script>