Commit 7ff6e53d authored by Klaus Wölfel's avatar Klaus Wölfel

erp5_web_renderjs_ui: WOELFEL TEMP: Add link to go back to old UI

parent c73e26b3
......@@ -48,6 +48,7 @@
<div>
<form>
<div style="text-align: center;"><a class="panel_img_link" href="">Jump to old user interface</a></div>
<button type="submit" class="ui-icon-action ui-btn-icon-right ui-screen-hidden">Submit</button>
<div data-gadget-url="gadget_erp5_searchfield.html"
data-gadget-scope="erp5_searchfield"
......
......@@ -74,7 +74,21 @@
view_list,
action_list,
clone_list,
jump_list;
jump_list,
index,
url,
link_list;
if (erp5_document !== undefined) {
if (erp5_document.hasOwnProperty('_links')) {
index = erp5_document._links.self.href.indexOf('/web_site_module');
url = erp5_document._links.self.href.substring(0, index + 1);
link_list = this.element.getElementsByClassName("panel_img_link");
if (link_list.length > 0) {
link_list[0].href = url + jio_key;
}
}
}
if (visible === undefined) {
visible = context.state.visible;
......
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