Commit 420c2a32 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 31097ada
...@@ -272,7 +272,7 @@ ...@@ -272,7 +272,7 @@
if (download_url.startsWith("urn:jio:")) { if (download_url.startsWith("urn:jio:")) {
queue = RSVP.Queue() queue = RSVP.Queue()
.push(function () { .push(function () {
return g.downloadJSON(download_url); return g.resolveExternalReference(download_url);
}); });
} else { } else {
queue = RSVP.Queue() queue = RSVP.Queue()
...@@ -636,7 +636,7 @@ ...@@ -636,7 +636,7 @@
g.props = {}; g.props = {};
g.options = {}; g.options = {};
}) })
.declareAcquiredMethod("downloadJSON", "downloadJSON") .declareAcquiredMethod("resolveExternalReference", "resolveExternalReference")
.declareAcquiredMethod("notifyChange", "notifyChange") .declareAcquiredMethod("notifyChange", "notifyChange")
.allowPublicAcquisition("rootNotifyChange", function () { .allowPublicAcquisition("rootNotifyChange", function () {
this.props.changed = true; this.props.changed = true;
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
return this.element.querySelector('button[type="submit"]').click(); return this.element.querySelector('button[type="submit"]').click();
}) })
.allowPublicAcquisition("downloadJSON", function (arr) { .allowPublicAcquisition("resolveExternalReference", function (arr) {
var g = this, var g = this,
url = arr[0], url = arr[0],
reference, 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