Use jQuery syntax for the history request
This commit is contained in:
parent
2b86f8cab2
commit
1862389e6b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue