Making timing better for new score bar [HFP-1229]

pull/13/merge
Paal Joergensen 2017-08-04 12:03:30 +02:00
parent cda9ceaeec
commit facea236ce
1 changed files with 1 additions and 1 deletions

View File

@ -772,7 +772,6 @@ H5P.QuestionSet = function (options, contentId, contentData) {
scoreBar = H5P.JoubelUI.createScoreBar(totals); scoreBar = H5P.JoubelUI.createScoreBar(totals);
} }
scoreBar.appendTo($('.feedback-scorebar', $myDom)); scoreBar.appendTo($('.feedback-scorebar', $myDom));
scoreBar.setScore(finals);
$('.feedback-text', $myDom).html(scoreString); $('.feedback-text', $myDom).html(scoreString);
// Announce that the question set is complete // Announce that the question set is complete
@ -783,6 +782,7 @@ H5P.QuestionSet = function (options, contentId, contentData) {
eparams.comment + '.' + eparams.comment + '.' +
eparams.resulttext) eparams.resulttext)
.show().focus(); .show().focus();
scoreBar.setScore(finals);
}, 0); }, 0);
} }
else { else {