Changed retry icon for whole task for consistency.

Accepts answered and attempted xapi verbs as well to mark a question as answered.
HFJ-946
pull/1/head
Thomas Marstrander 2015-08-13 10:35:55 +02:00
parent 396abf92b7
commit ad0acb2898
2 changed files with 4 additions and 2 deletions

View File

@ -107,7 +107,7 @@
.questionset-results a.h5p-button.qs-retrybutton:before {
font-family: 'H5PFontAwesome4';
padding-right: 0.5em;
content: "\f021";
content: "\f01e";
}
.qs-footer > .next, .qs-footer > .finish, .qs-finishbutton {

View File

@ -391,7 +391,9 @@ H5P.QuestionSet = function (options, contentId) {
question.on('xAPI', function (event) {
var shortVerb = event.getVerb();
if (shortVerb === 'interacted') {
if (shortVerb === 'interacted' ||
shortVerb === 'answered' ||
shortVerb === 'attempted') {
$('.progress-dot:eq(' + currentQuestion +')', $myDom).removeClass('unanswered').addClass('answered');
_updateButtons();
}