From 587f4882769ead662b0178e7847b680a8a86fb88 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Mon, 4 Jul 2016 13:05:38 +0200 Subject: [PATCH] Bugfix unanswered toggles answered state HFJ-2040 --- js/questionset.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/questionset.js b/js/questionset.js index 9c2eac7..f47d002 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -344,6 +344,9 @@ H5P.QuestionSet = function (options, contentId) { return; } + // Ensure boolean + isAnswered = !!isAnswered; + var label = params.texts.jumpToQuestion .replace('%d', (dotIndex + 1).toString()) .replace('%total', $('.progress-dot', $myDom).length) +