Skip to content

Commit

Permalink
worksheet: don't show marks for a part when it's the only one in the …
Browse files Browse the repository at this point in the history
…question

fixes #1019
  • Loading branch information
christianp committed Jul 12, 2023
1 parent 8bc07c8 commit 0eb957b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/default/files/scripts/part-display.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ Numbas.queueScript('part-display',['display-base','util','jme'],function() {
* @memberof Numbas.display.PartDisplay
*/
this.showMarks = Knockout.computed(function() {
return this.scoreFeedback.message() && (this.isNotOnlyPart() || this.scoreFeedback.iconClass());
return this.scoreFeedback.message() && (this.isNotOnlyPart() || !(this.scoreFeedback.iconClass()=='' || this.scoreFeedback.iconClass()=='invisible'));
}, this);
/** Should the box containing part marks and the submit and feedback buttons be shown?
*
Expand Down

1 comment on commit 0eb957b

@chrismgraham
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to bring this one back, but I still seem to get the duplicate marks with a one part question

Please sign in to comment.