From 0eb957bbfc5b969cb8b6f8407d759adad7b4b53d Mon Sep 17 00:00:00 2001 From: Christian Lawson-Perfect Date: Wed, 12 Jul 2023 12:33:41 +0100 Subject: [PATCH] worksheet: don't show marks for a part when it's the only one in the question fixes #1019 --- themes/default/files/scripts/part-display.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/default/files/scripts/part-display.js b/themes/default/files/scripts/part-display.js index b87d77175..3e11b73a6 100644 --- a/themes/default/files/scripts/part-display.js +++ b/themes/default/files/scripts/part-display.js @@ -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? *