Read feedback when changing question.

Do not read feedback when showing all solutions.
HFJ-2043
pull/5/head
Thomas Marstrander 2016-06-27 15:42:31 +02:00
parent 45af3ef06e
commit 7bcd2472ba
1 changed files with 7 additions and 0 deletions

View File

@ -236,6 +236,10 @@ H5P.QuestionSet = function (options, contentId) {
.show()
.html(humanizedProgress)
.focus();
if (instance && instance.readFeedback) {
instance.readFeedback();
}
}, 0);
// Remember where we are
@ -252,7 +256,10 @@ H5P.QuestionSet = function (options, contentId) {
var showSolutions = function () {
for (var i = 0; i < questionInstances.length; i++) {
try {
// Do not read answers
questionInstances[i].toggleReadSpeaker(true);
questionInstances[i].showSolutions();
questionInstances[i].toggleReadSpeaker(false);
}
catch(error) {
H5P.error("subcontent does not contain a valid showSolutions function");