From ad0acb28984ca304c04cf066a6d165eabcb19e11 Mon Sep 17 00:00:00 2001 From: Thomas Marstrander Date: Thu, 13 Aug 2015 10:35:55 +0200 Subject: [PATCH] Changed retry icon for whole task for consistency. Accepts answered and attempted xapi verbs as well to mark a question as answered. HFJ-946 --- css/questionset.css | 2 +- js/questionset.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/css/questionset.css b/css/questionset.css index ce830fa..8448f36 100644 --- a/css/questionset.css +++ b/css/questionset.css @@ -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 { diff --git a/js/questionset.js b/js/questionset.js index 20eba15..be4ec96 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -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(); }