Skip to content

Commit

Permalink
fix order of definition of showScoreFeedback.revealed
Browse files Browse the repository at this point in the history
  • Loading branch information
christianp committed Sep 19, 2024
1 parent f2ee66c commit a6e0845
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions themes/default/files/scripts/display-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,14 @@ Numbas.queueScript('display-util', ['math'], function() {
return obj.visited!==undefined && obj.visited();
});

var revealed = Knockout.computed(function() {
return (obj.revealed() && showActualMark()) || (Numbas.is_instructor && settings.reveal_answers_for_instructor!==false);
});

var showActualMark = resolve_feedback_setting(obj, settings.showActualMark);
var showTotalMark = resolve_feedback_setting(obj, settings.showTotalMark);
var showAnswerState = resolve_feedback_setting(obj, settings.showAnswerState);

var revealed = Knockout.computed(function() {
return (obj.revealed() && showActualMark()) || (Numbas.is_instructor && settings.reveal_answers_for_instructor!==false);
});

var showFeedbackIcon = settings.showFeedbackIcon === undefined ? showAnswerState() : settings.showFeedbackIcon;

var anyAnswered = Knockout.computed(function() {
Expand Down

0 comments on commit a6e0845

Please sign in to comment.