Commit 151b0e6b authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

HomePage: Editing in another site is updated and work

parent 0c7440c5
......@@ -49,9 +49,8 @@
getURL = window.location,
site = getURL.protocol + "//" + getURL.host,
edit_base = "https://" + makeid(10) + ".cribjs.nexedi.net/",
edit_url = edit_base + "#redirect_url=" +
encodeURIComponent(edit_base + "#page=editor&url=" +
"index.html" + "&crib_enable_url=" + site + "/crib-enable.html");
edit_url = edit_base + "#page=url_list&url=" +
"index.html" + "&crib_enable_url=" + site + "/crib-enable.html";
gadget.props.element.querySelector("a.edit-url").href = edit_url;
return new RSVP.Queue()
.push(function () {
......
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