Sub content is not allowed to generate completed statements

pull/1/head
Svein-Tore Griff With 2015-07-10 13:41:16 +02:00
parent cce3af6078
commit 436b9d572c
1 changed files with 6 additions and 1 deletions

View File

@ -364,10 +364,15 @@ H5P.QuestionSet = function (options, contentId) {
question.attach($('.question-container:eq(' + i + ')', $myDom));
question.on('xAPI', function (event) {
if (event.getVerb() === 'interacted') {
var shortVerb = event.getVerb();
if (shortVerb === 'interacted') {
$('.progress-dot:eq(' + currentQuestion +')', $myDom).removeClass('unanswered').addClass('answered');
_updateButtons();
}
if (shortVerb === 'completed') {
// An activity within this activity is not allowed to send completed events
event.setVerb('answered');
}
});
if (question.getAnswerGiven()) {
$('.progress-dot:eq(' + i +')', $myDom).removeClass('unanswered').addClass('answered');