parent
5391fec861
commit
71f92ff664
|
@ -204,7 +204,7 @@ H5P.QuestionSet = function (options, contentId) {
|
|||
}
|
||||
};
|
||||
|
||||
var _showQuestion = function (questionNumber) {
|
||||
var _showQuestion = function (questionNumber, preventAnnouncement) {
|
||||
// Sanitize input.
|
||||
if (questionNumber < 0) {
|
||||
questionNumber = 0;
|
||||
|
@ -242,6 +242,7 @@ H5P.QuestionSet = function (options, contentId) {
|
|||
toggleCurrentDot(questionNumber, true);
|
||||
}
|
||||
|
||||
if (!preventAnnouncement) {
|
||||
// Announce question number of total, must use timeout because of buttons logic
|
||||
setTimeout(function () {
|
||||
var humanizedProgress = params.texts.readSpeakerProgress
|
||||
|
@ -257,6 +258,7 @@ H5P.QuestionSet = function (options, contentId) {
|
|||
instance.readFeedback();
|
||||
}
|
||||
}, 0);
|
||||
}
|
||||
|
||||
// Remember where we are
|
||||
_updateButtons();
|
||||
|
@ -661,7 +663,7 @@ H5P.QuestionSet = function (options, contentId) {
|
|||
|
||||
|
||||
// Hide all but initial Question.
|
||||
_showQuestion(params.initialQuestion);
|
||||
_showQuestion(params.initialQuestion, true);
|
||||
|
||||
if (renderSolutions) {
|
||||
showSolutions();
|
||||
|
|
Loading…
Reference in New Issue