Commit b8acf8a0 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_web_renderjs_ui: Fix element position

parent f8055834
...@@ -232,13 +232,14 @@ ...@@ -232,13 +232,14 @@
} }
dom_element.appendChild(parent_element); dom_element.appendChild(parent_element);
} }
if (form_definition.hasOwnProperty("edit_form_href")) { if (form_definition.hasOwnProperty("edit_form_href")) {
field_href = document.createElement("a"); field_href = document.createElement("a");
field_href.href = form_definition.edit_form_href; field_href.href = form_definition.edit_form_href;
field_href.title = "Edit this form"; field_href.title = "Edit this form";
field_href.appendChild(document.createElement("img")); field_href.appendChild(document.createElement("img"));
field_href.firstElementChild.src = form_definition.edit_form_icon; field_href.firstElementChild.src = form_definition.edit_form_icon;
dom_element.insertBefore(field_href, dom_element.firstChild); form_gadget.element.insertBefore(field_href, dom_element);
} }
if (form_definition.hasOwnProperty("edit_form_action_href")) { if (form_definition.hasOwnProperty("edit_form_action_href")) {
...@@ -247,8 +248,7 @@ ...@@ -247,8 +248,7 @@
field_href.title = "Edit this form's action"; field_href.title = "Edit this form's action";
field_href.appendChild(document.createElement("img")); field_href.appendChild(document.createElement("img"));
field_href.firstElementChild.src = form_definition.edit_form_action_icon; field_href.firstElementChild.src = form_definition.edit_form_action_icon;
dom_element.firstElementChild.insertAdjacentElement( form_gadget.element.insertBefore(field_href, dom_element);
"afterend", field_href);
} }
}); });
}) })
......
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>987.50975.46561.32017</string> </value> <value> <string>987.52017.59742.51780</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -252,7 +252,7 @@ ...@@ -252,7 +252,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1604609338.19</float> <float>1604672111.49</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
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