currentQuestion had to be set earlier [HFJ-1400]
parent
db69bc60a3
commit
1e4ec27ae3
|
@ -175,6 +175,8 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
questionNumber = params.questions.length - 1;
|
questionNumber = params.questions.length - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
currentQuestion = questionNumber;
|
||||||
|
|
||||||
// Hide all questions
|
// Hide all questions
|
||||||
$('.question-container', $myDom).hide().eq(questionNumber).show();
|
$('.question-container', $myDom).hide().eq(questionNumber).show();
|
||||||
|
|
||||||
|
@ -199,7 +201,6 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remember where we are
|
// Remember where we are
|
||||||
currentQuestion = questionNumber;
|
|
||||||
_updateButtons();
|
_updateButtons();
|
||||||
self.trigger('resize');
|
self.trigger('resize');
|
||||||
return currentQuestion;
|
return currentQuestion;
|
||||||
|
|
Loading…
Reference in New Issue