Commit c53ac880 authored by Boris Kocherov's avatar Boris Kocherov

add reference to notification options and fake `render` action

parent 22b203b2
......@@ -272,7 +272,7 @@
hash = url.hash;
url = url.href;
if (download_url.startsWith("urn:jio:")) {
external_reference = true;
external_reference = download_url;
queue = RSVP.Queue()
.push(function () {
return g.resolveExternalReference(download_url, schema_path, path);
......
......@@ -347,6 +347,15 @@
saveOrigValue: g.props.saveOrigValue,
ignore_incorrect: g.props.ignore_incorrect,
scope: scope
})
.push(function () {
if (options.schema_arr.external_reference) {
return form_gadget.rootNotifyChange({
scope: scope,
action: "render",
path: "/"
});
}
})
.push(function () {
if (form_gadget.props.changed) {
......@@ -535,6 +544,7 @@
return schema_arr;
}
ret_arr[0].circular = circular;
ret_arr.external_reference = schema_arr.external_reference;
return ret_arr;
}
return schema_arr;
......@@ -1818,6 +1828,7 @@
scope: v.scope || g.element.getAttribute("data-gadget-scope"),
rel_path: v.path,
path: p,
ref: g.props.schema_arr.external_reference,
action: v.action
});
});
......
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