Commit bff49be8 authored by Boris Kocherov's avatar Boris Kocherov

erp5_json_form and erp5_officejs: rename downloadJSON() to...

erp5_json_form and erp5_officejs: rename downloadJSON() to resolveExternalReference() thanks @jerome
parent 331153ed
......@@ -272,7 +272,7 @@
if (download_url.startsWith("urn:jio:")) {
queue = RSVP.Queue()
.push(function () {
return g.downloadJSON(download_url);
return g.resolveExternalReference(download_url);
});
} else {
queue = RSVP.Queue()
......@@ -636,7 +636,7 @@
g.props = {};
g.options = {};
})
.declareAcquiredMethod("downloadJSON", "downloadJSON")
.declareAcquiredMethod("resolveExternalReference", "resolveExternalReference")
.declareAcquiredMethod("notifyChange", "notifyChange")
.allowPublicAcquisition("rootNotifyChange", function () {
this.props.changed = true;
......
......@@ -83,7 +83,7 @@
return this.element.querySelector('button[type="submit"]').click();
})
.allowPublicAcquisition("downloadJSON", function (arr) {
.allowPublicAcquisition("resolveExternalReference", function (arr) {
var g = this,
url = arr[0],
reference,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment