Sub content is not allowed to generate completed statements
parent
cce3af6078
commit
436b9d572c
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue