feat: add choice value to see if it's image or not

This commit is contained in:
EL-R1 2023-06-19 23:32:31 +02:00
parent 76cc3bbe52
commit 7208052669

View file

@ -238,7 +238,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 + ')'); addItem(ul, caption, 'javascript:choice(' + index + ')', x);
index++; index++;
} }