Skip to content

Commit

Permalink
when "show score feedback icon" is off, only show neutral feedback me…
Browse files Browse the repository at this point in the history
…ssages

fixes #1082
  • Loading branch information
christianp committed Feb 15, 2024
1 parent 8438c95 commit f4a5e68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions marking_scripts/multipleresponse.jme
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ only_ticked_score_ticks (The score for each choice/answer pair):
add_credit(credit,distractor)
)
,
if(isnonemptyhtml(distractor),feedback(distractor),if(marks<>0,feedback(translate('part.mcq.incorrect choice')),false))
if(isnonemptyhtml(distractor),negative_feedback(distractor),if(marks<>0,negative_feedback(translate('part.mcq.incorrect choice')),false))
);credit
)
,
Expand All @@ -57,7 +57,7 @@ binary_score_ticks (Scores and feedback for each choice/answer pair, in the "bin
if(studentAnswer[x][y]=should_tick,
per_tick
,
assert(not isnonemptyhtml(distractor),feedback(distractor));
assert(not isnonemptyhtml(distractor),negative_feedback(distractor));
0
)
),
Expand Down
3 changes: 3 additions & 0 deletions runtime/scripts/part.js
Original file line number Diff line number Diff line change
Expand Up @@ -1988,6 +1988,9 @@ if(res) { \
*/
markingComment: function(message, reason, format)
{
if(!this.settings.showFeedbackIcon && reason == 'incorrect' || reason=='correct') {
return;
}
this.markingFeedback.push({
op: 'feedback',
message: message,
Expand Down

0 comments on commit f4a5e68

Please sign in to comment.