From: Tom Hughes Date: Fri, 2 Dec 2011 11:03:19 +0000 (+0000) Subject: Use jQuery syntax for the history request X-Git-Tag: live~5945 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/1862389e6b3898a8ba330fcbde85b7e32b6a9cc1?ds=sidebyside Use jQuery syntax for the history request --- diff --git a/app/views/browse/start.js.erb b/app/views/browse/start.js.erb index e986213a7..d427ddbaf 100644 --- a/app/views/browse/start.js.erb +++ b/app/views/browse/start.js.erb @@ -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;