modules-Block: prepared different input options, grid-element: panel-background added -> icon always visible
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user