Skip to content

Commit

Permalink
remove the "save all answers" button
Browse files Browse the repository at this point in the history
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
  • Loading branch information
christianp committed Nov 8, 2024
1 parent 2443efb commit 29b0ae0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions themes/default/files/scripts/part-display.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion themes/default/templates/question-nav.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<!-- bottom nav bar - prv/nxt, plus submit/advice/reveal buttons -->
<nav class="question-nav question-bottom-nav navbar navbar-default" data-bind="jmescope: question.scope,attr: {{'aria-label': R('question.nav.label')}}">
<div class="nav navbar-nav">
<button class="btn btn-primary navbar-btn submitBtn" data-bind="visible: $root.exam().mode()=='normal' &amp;&amp; question.partsMode=='all' &amp;&amp; !revealed() &amp;&amp; question.parts.length, click: Numbas.controls.submitQuestion, text: submitMessage"><localise>control.submit all parts</localise></button>
<p class="marks navbar-text" data-bind="visible: !showScoreBreakdown()">
<span class="score" data-bind="html: scoreFeedback.message, pulse: scoreFeedback.update"></span>
<span class="feedback-icon" data-bind="css: scoreFeedback.iconClass, attr: scoreFeedback.iconAttr, pulse: scoreFeedback.update" aria-hidden="true"></span>
Expand Down

0 comments on commit 29b0ae0

Please sign in to comment.