]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/start.js.erb
Use jQuery syntax for the history request
[rails.git] / 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;