]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wip #6387 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 12 Oct 2023 14:38:55 +0000 (16:38 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 12 Oct 2023 14:38:55 +0000 (16:38 +0200)
js/quiz.attemptslog.js
js/quiz.score.js

index 0b15c1c4db1334a82846e5aaca8930da8cd158c2..cad676176fc351811bc943e3630fe37c4cdb1998 100644 (file)
@@ -11,9 +11,11 @@ QuizAttemptsLog.prototype = {
         }
 
         let score = this.quiz.score.getNormalizedScore(true);
+
         if (isNaN(score)) {
             score = 0;
         }
+
         let logdata = {
             score: score, passed: this.quiz.score.isPassed(), questions: this.getQuestionsToLog(),
         };
index d19de7bf738c536b11919f2bbd17df7cdd7d054b..bb8986c868306cc0ce955aa9b7d0989483e599bc 100644 (file)
@@ -109,7 +109,7 @@ QuizScore.prototype = {
                 log.answer = userAnswers;
             } else {
                 ok = 'neutral';
-                log.answer = $(this).find('input,textarea,select').val();
+                log.answer = userAnswers;
             }
         }