From 72080526698e8e0607c8053135cd41cff584c403 Mon Sep 17 00:00:00 2001 From: EL-R1 Date: Mon, 19 Jun 2023 23:32:31 +0200 Subject: [PATCH] feat: add choice value to see if it's image or not --- assets/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scripts.js b/assets/scripts.js index d930ded..c6e85cb 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -238,7 +238,7 @@ function addChoices(r) { let index = 0; for (let x of r.choices) { var caption = r.defaultChoiceIndex == index ? '[' + x.text + ']' : x.text; - addItem(ul, caption, 'javascript:choice(' + index + ')'); + addItem(ul, caption, 'javascript:choice(' + index + ')', x); index++; }