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