Commit f6b1604c authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Using Load in Editor Reload the page

parent 8cc77c61
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
.declareAcquiredMethod("crib_sw_put", "crib_sw_put") .declareAcquiredMethod("crib_sw_put", "crib_sw_put")
.declareAcquiredMethod("setSetting", "setSetting") .declareAcquiredMethod("setSetting", "setSetting")
.declareAcquiredMethod("getUrlFor", "getUrlFor") .declareAcquiredMethod("getUrlFor", "getUrlFor")
.declareAcquiredMethod("redirect", "redirect")
.declareMethod('render', function (options) { .declareMethod('render', function (options) {
var gadget = this; var gadget = this;
if (options === undefined) if (options === undefined)
...@@ -108,7 +109,7 @@ ...@@ -108,7 +109,7 @@
false, false,
function (event) { function (event) {
var url = gadget.props.element.querySelector("form.crib-editor-get .url").value; var url = gadget.props.element.querySelector("form.crib-editor-get .url").value;
return getUrlTextContent(gadget, event, url); return gadget.redirect({page: "editor", url: url});
} }
)); ));
// promise to save content // promise to save content
......
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