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