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

erp5_production_planning: show notification whe not editable also

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