Read feedback when changing question.
Do not read feedback when showing all solutions. HFJ-2043pull/5/head
parent
45af3ef06e
commit
7bcd2472ba
|
@ -236,6 +236,10 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
.show()
|
.show()
|
||||||
.html(humanizedProgress)
|
.html(humanizedProgress)
|
||||||
.focus();
|
.focus();
|
||||||
|
|
||||||
|
if (instance && instance.readFeedback) {
|
||||||
|
instance.readFeedback();
|
||||||
|
}
|
||||||
}, 0);
|
}, 0);
|
||||||
|
|
||||||
// Remember where we are
|
// Remember where we are
|
||||||
|
@ -252,7 +256,10 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
var showSolutions = function () {
|
var showSolutions = function () {
|
||||||
for (var i = 0; i < questionInstances.length; i++) {
|
for (var i = 0; i < questionInstances.length; i++) {
|
||||||
try {
|
try {
|
||||||
|
// Do not read answers
|
||||||
|
questionInstances[i].toggleReadSpeaker(true);
|
||||||
questionInstances[i].showSolutions();
|
questionInstances[i].showSolutions();
|
||||||
|
questionInstances[i].toggleReadSpeaker(false);
|
||||||
}
|
}
|
||||||
catch(error) {
|
catch(error) {
|
||||||
H5P.error("subcontent does not contain a valid showSolutions function");
|
H5P.error("subcontent does not contain a valid showSolutions function");
|
||||||
|
|
Loading…
Reference in New Issue