Commit aa6873c9 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Cédric Le Ninivin

erp5_production_planning: show notification whe not editable also

parent bfc9b457
......@@ -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,17 +5,28 @@
.matrixbox_production_planning table tbody td span:last-child span{
display: none;
position: absolute;
left: 100px;
left: 30px;
background: black;
color: white;
z-index:100;
min-width: 200px;
}
.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;
}
*/
.matrixbox_production_planning table tbody td:focus span:last-child span,
.matrixbox_production_planning table tbody td:hover span:last-child span {
display: inline;
}
.content .field .warning {
color: #f40;
......
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