currentQuestion had to be set earlier [HFJ-1400]

pull/3/head
Paal Joergensen 2015-12-01 14:42:04 +01:00
parent db69bc60a3
commit 1e4ec27ae3
1 changed files with 2 additions and 1 deletions

View File

@ -175,6 +175,8 @@ H5P.QuestionSet = function (options, contentId) {
questionNumber = params.questions.length - 1;
}
currentQuestion = questionNumber;
// Hide all questions
$('.question-container', $myDom).hide().eq(questionNumber).show();
@ -199,7 +201,6 @@ H5P.QuestionSet = function (options, contentId) {
}
// Remember where we are
currentQuestion = questionNumber;
_updateButtons();
self.trigger('resize');
return currentQuestion;