modules-Block: prepared different input options, grid-element: panel-background added -> icon always visible

This commit is contained in:
Daniel
2025-04-30 16:43:57 +02:00
parent 2eaced4283
commit 8c03da89d9
4 changed files with 32 additions and 29 deletions

View File

@ -270,7 +270,6 @@ function updateStatus(component) {
}
function updateValue(component) {
let matches = document.getElementsByName(component.name);
for (var j = 0; j < matches.length; j++) {
let elem = matches[j];
@ -279,9 +278,9 @@ function updateValue(component) {
let text = htmlEscape(component.formatted);
if (text) {
elem.innerHTML = text;
// elem.innerHTML = ' ein etwas zu langer, nein viel zu langer Text...';
}
} else if (type == "input") {
}
else if (type == "input") {
let row = elem.closest('div');
row.classList.remove('row-waiting-for-answer');
@ -298,8 +297,6 @@ function updateValue(component) {
} else if (type == "checkbox") {
let row = elem.closest('div');
row.classList.remove('row-waiting-for-answer');
console.log('receive: ', component.value);
if (component.value == 'False' || component.value == 'false' || component.value == 0) {
elem.checked = false;
} else {