From c782cda3a328112ef08b0f0faf5478fad87d11db Mon Sep 17 00:00:00 2001 From: sergiusz Date: Mon, 7 Dec 2020 01:28:25 +0100 Subject: [PATCH] Fixed displaying the correct asnwers --- app/templates/Pensum_cloze.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/templates/Pensum_cloze.html b/app/templates/Pensum_cloze.html index 797af1a..955b5ef 100644 --- a/app/templates/Pensum_cloze.html +++ b/app/templates/Pensum_cloze.html @@ -81,7 +81,8 @@ inputs.forEach((input) => { if (input.type=="text") { - input.setAttribute("value", input.dataset.expected); + // input.setAttribute("value", input.dataset.expected); + input.value = input.dataset.expected; input.removeAttribute("class"); } });