mirror of
https://github.com/mehotkhan/BandersnatchInteractive.git
synced 2025-07-27 17:23:22 +00:00
fix: display image
send child choice instead of parent
This commit is contained in:
parent
5d925c1780
commit
3a91e92080
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue