Skip to content

Commit

Permalink
if no part feedback messages, empty the display list
Browse files Browse the repository at this point in the history
fixes #1081
  • Loading branch information
christianp committed Feb 15, 2024
1 parent 982b1f8 commit 8438c95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions themes/default/files/scripts/part-display.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,8 @@ Numbas.queueScript('part-display',['display-util', 'display-base','util','jme'],
return {credit_change: action.credit_change, message: action.message, icon: icons[action.credit_change], format: action.format || 'string'};
});
this.feedbackMessages(messages);
} else {
this.feedbackMessages([]);
}
},
/** Called when 'show steps' button is pressed, or coming back to a part after steps shown.
Expand Down

0 comments on commit 8438c95

Please sign in to comment.