Use jQuery syntax for the history request
authorTom Hughes <tom@compton.nu>
Fri, 2 Dec 2011 11:03:19 +0000 (11:03 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 2 Dec 2011 11:03:19 +0000 (11:03 +0000)
app/views/browse/start.js.erb

index e986213a7c00d84d747fb97f24fd9417e2120dc3..d427ddbafe951d160b3e180570a0b8f411f65bfc 100644 (file)
@@ -428,8 +428,8 @@ function loadHistory() {
   this.link.href = "";
   this.link.innerHTML = "<%=j t 'browse.start_rjs.wait' %>";
 
-  new Ajax.Request("/api/<%= API_VERSION %>/" + this.type + "/" + this.feature.osm_id + "/history", {
-    onComplete: OpenLayers.Function.bind(displayHistory, this)
+  $.ajax("/api/<%= API_VERSION %>/" + this.type + "/" + this.feature.osm_id + "/history", {
+    complete: OpenLayers.Function.bind(displayHistory, this)
   });
 
   return false;