Added the route template (missing from a previous commit).
--- /dev/null
+function post_data(url, data) {
+ /* Create a new form, and add it to the DOM. Then, create a hidden
+ input control as a child of the form which contains the data that
+ we'd like to post. Finally, add the form to the document's body,
+ and submit it. */
+ var new_form = document.createElement("form");
+ new_form.method = "post";
+ new_form.action = url;
+ var new_input = document.createElement("input");
+ new_input.setAttribute("id", "data");
+ new_input.setAttribute("name", "data");
+ new_input.setAttribute("type", "hidden");
+ new_input.setAttribute("value", data);
+ new_form.appendChild(new_input);
+ document.body.appendChild(new_form);
+ new_form.submit();
+}
-function post_data(url, data) {
- /* Create a new form, and add it to the DOM. Then, create a hidden
- input control as a child of the form which contains the data that
- we'd like to post. Finally, add the form to the document's body,
- and submit it. */
- var new_form = document.createElement("form");
- new_form.method = "post";
- new_form.action = url;
- var new_input = document.createElement("input");
- new_input.setAttribute("id", "data");
- new_input.setAttribute("name", "data");
- new_input.setAttribute("type", "hidden");
- new_input.setAttribute("value", data);
- new_form.appendChild(new_input);
- document.body.appendChild(new_form);
- new_form.submit();
-}
-
-
var producers = new Array();
var consumers = new Array();
--- /dev/null
+<%inherit file="/base.mako"/>\
+
+<%def name="scripts()">
+ <script src="http://maps.google.com/maps/api/js?sensor=false"
+ type="text/javascript"></script>
+
+ <script src="/javascripts/maputils.js"
+ type="text/javascript"></script>
+</%def>
+
+<script type="text/javascript">
+${c.js}
+</script>
\ No newline at end of file