Commit c147f55c authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Matrixbox: do not use manually create the DOM element

parent 7881c2b0
...@@ -138,16 +138,14 @@ ...@@ -138,16 +138,14 @@
return RSVP.all(row.map(function (column) { return RSVP.all(row.map(function (column) {
// transform all cell-definitions into actual gadgets // transform all cell-definitions into actual gadgets
var col_element = document.createElement('td');
return gadget.declareGadget('gadget_erp5_label_field.html', { return gadget.declareGadget('gadget_erp5_label_field.html', {
scope: column.key, scope: column.key,
element: col_element, element: 'td',
sandbox: "public" sandbox: "public"
}) })
.push(function (sub_gadget) { .push(function (sub_gadget) {
gadget.props.gadget_dict[column.key] = sub_gadget; gadget.props.gadget_dict[column.key] = sub_gadget;
return col_element; return sub_gadget.element;
}); });
})); }));
}) })
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>970.6987.53119.54186</string> </value> <value> <string>971.7721.48108.61320</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1536332923.27</float> <float>1542884421.69</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