Use jQuery syntax for the history request

This commit is contained in:
Tom Hughes 2011-12-02 11:03:19 +00:00
parent 2b86f8cab2
commit 1862389e6b

View 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;