<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -34,13 +34,13 @@
 		Event.observe($(&quot;submit_bth&quot;), &quot;click&quot;, function(){
 		  var payload = map.getJSON();
 		  console.log(payload);
-		  Ajax.Request('/incidents/create', {
+		  new Ajax.Request('/incidents/create', {
 		    onSuccess: function(response) {
 		      alert(&quot;Really? Bugger.&quot;);
 		    },
 		    method: 'post',
 		    contentType: 'application/json',
-		    postBody: &quot;payload&quot;
+		    postBody: payload
 		  });
 		});
 		</diff>
      <filename>web/views/incidents_new.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1ad248e54aa67cc40af6fead1d7020101dc21eb6</id>
    </parent>
  </parents>
  <author>
    <name>madlep</name>
    <email>madlep@ubercharged.net</email>
  </author>
  <url>http://github.com/lonelyplanet/its-buggered-mate/commit/b3ff8e04bcf6036c8be3e8d3f93c8b1132165229</url>
  <id>b3ff8e04bcf6036c8be3e8d3f93c8b1132165229</id>
  <committed-date>2009-10-30T16:31:46-07:00</committed-date>
  <authored-date>2009-10-30T16:31:46-07:00</authored-date>
  <message>fixed n00bie error with prototype Ajax.Request not working</message>
  <tree>415329119eb86dc7774eb752a1e99efdc0249024</tree>
  <committer>
    <name>madlep</name>
    <email>madlep@ubercharged.net</email>
  </committer>
</commit>
