From 29b0ae021067895919a95e506f2f8ca38268a482 Mon Sep 17 00:00:00 2001 From: Christian Lawson-Perfect Date: Fri, 8 Nov 2024 10:02:56 +0000 Subject: [PATCH] remove the "save all answers" button The "save answer" button is shown after each part, even when it's the only one in the question. This also removes the "save all answers" button in the questoin nav bar at the bottom. fixes #1118 --- themes/default/files/scripts/part-display.js | 3 --- themes/default/templates/question-nav.xslt | 1 - 2 files changed, 4 deletions(-) diff --git a/themes/default/files/scripts/part-display.js b/themes/default/files/scripts/part-display.js index 39fb412e3..08364484b 100644 --- a/themes/default/files/scripts/part-display.js +++ b/themes/default/files/scripts/part-display.js @@ -347,9 +347,6 @@ Numbas.queueScript('part-display',['display-util', 'display-base','util','jme'], * @memberof Numbas.display.PartDisplay */ this.showSubmitPart = Knockout.computed(function() { - if(p.question && p.question.partsMode!='explore' && p.question.display.parts().length<=1 && !p.isStep) { - return false; - } return this.doesMarking() && !this.disabled(); },this); /** Text to describe the state of the steps penalty. diff --git a/themes/default/templates/question-nav.xslt b/themes/default/templates/question-nav.xslt index e5526c142..1a4f3f868 100644 --- a/themes/default/templates/question-nav.xslt +++ b/themes/default/templates/question-nav.xslt @@ -2,7 +2,6 @@