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 @@
.declareAcquiredMethod("crib_sw_put", "crib_sw_put")
.declareAcquiredMethod("setSetting", "setSetting")
.declareAcquiredMethod("getUrlFor", "getUrlFor")
.declareAcquiredMethod("redirect", "redirect")
.declareMethod('render', function (options) {
var gadget = this;
if (options === undefined)
......@@ -108,7 +109,7 @@
false,
function (event) {
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
......
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