Commit 01574527 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_production_planning: wait for matrixbox fully displayed

parent 2e87e423
......@@ -115,8 +115,10 @@ function observe(mutationsList) {
for (i = 0; i < len; i += 1) {
node = mutation.addedNodes[i];
if (node.nodeType === Node.ELEMENT_NODE) {
if (node.getAttribute('class') == 'field matrixbox_production_planning') {
addTotalLineColumnToMatrixBox(node);
// Make sure matrixbox is fully displayed
if (node.getAttribute('class') == 'Data footer') {
var matrixbox = document.querySelector('.matrixbox_production_planning');
addTotalLineColumnToMatrixBox(matrixbox);
observer.disconnect();
}
}
......
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