]> gitweb.michael.orlitzky.com - dead/census-tools.git/blobdiff - www/maps/maps/templates/javascript/routing.mako
Created a MapUtils object to contain the post_data function.
[dead/census-tools.git] / www / maps / maps / templates / javascript / routing.mako
index 3d28f3b4978ce66f48abe852497038437db3bcdd..49e10b74d21274cbd867f153e7560053b0401272 100644 (file)
@@ -49,7 +49,8 @@ function routing_callback(result, status) {
   if (completed_requests == total_requests) {
     // Close the array, and do something with the result.
     json_string += ']';
-    post_data('/directions/json_to_kml', json_string)
+    mu = new MapUtils();
+    mu.post_data('/directions/json_to_kml', json_string);
   }
   else {
     // Continue the array.