Commit 750f28ca authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_production_planning: show notification whe not editable also

parent 43149f7f
......@@ -45,14 +45,15 @@ function recalculateSumLine(idx, element) {
inputs = matrixbox.find('tr').find('td:eq(' + (idx+1) + ')');
for (i=1; i<inputs.length-1; i++) {
var input = inputs[i];
text = input.parentElement.querySelector('.matrixbox_label_column').innerText;
span = document.createElement('span');
span.innerText=text;
var tmp = input.querySelector('input');
if (tmp) {
text = tmp.parentElement.parentElement.parentElement.querySelector('.matrixbox_label_column').innerText;
span = document.createElement('span');
span.innerText=text;
tmp.parentElement.appendChild(span);
tmp.parentElement.appendChild(span);
v = parse(tmp.value);
} else {
input.querySelector('span').appendChild(span);
v = parse(input.innerText);
}
if (v) { sum += v; }
......
......@@ -5,12 +5,17 @@
.matrixbox_production_planning table tbody td span:last-child span{
display: none;
position: absolute;
left: 100px;
left: 25px;
background: black;
color: white;
z-index:100;
}
.matrixbox_production_planning table tbody td span:last-child input ~ span{
left: 100px;
}
.matrixbox_production_planning table tbody td span:last-child:focus span,
.matrixbox_production_planning table tbody td span:last-child:hover span {
display: inline;
......
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