fix: display image

send child choice instead of parent
This commit is contained in:
EL-R1 2023-06-21 11:03:50 +02:00
parent 5d925c1780
commit 3a91e92080

View file

@ -327,7 +327,7 @@ function addChoices(r) {
let index = 0; let index = 0;
for (let x of r.choices) { for (let x of r.choices) {
var caption = r.defaultChoiceIndex == index ? '[' + x.text + ']' : x.text; var caption = r.defaultChoiceIndex == index ? '[' + x.text + ']' : x.text;
addItem(ul, caption, 'javascript:choice(' + index + ')', r); addItem(ul, caption, 'javascript:choice(' + index + ')', x);
index++; index++;
} }
} }