Skip to content

Commit 29b0ae0

Browse files
committed
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
1 parent 2443efb commit 29b0ae0

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

themes/default/files/scripts/part-display.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,6 @@ Numbas.queueScript('part-display',['display-util', 'display-base','util','jme'],
347347
* @memberof Numbas.display.PartDisplay
348348
*/
349349
this.showSubmitPart = Knockout.computed(function() {
350-
if(p.question && p.question.partsMode!='explore' && p.question.display.parts().length<=1 && !p.isStep) {
351-
return false;
352-
}
353350
return this.doesMarking() && !this.disabled();
354351
},this);
355352
/** Text to describe the state of the steps penalty.

themes/default/templates/question-nav.xslt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<!-- bottom nav bar - prv/nxt, plus submit/advice/reveal buttons -->
33
<nav class="question-nav question-bottom-nav navbar navbar-default" data-bind="jmescope: question.scope,attr: {{'aria-label': R('question.nav.label')}}">
44
<div class="nav navbar-nav">
5-
<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>
65
<p class="marks navbar-text" data-bind="visible: !showScoreBreakdown()">
76
<span class="score" data-bind="html: scoreFeedback.message, pulse: scoreFeedback.update"></span>
87
<span class="feedback-icon" data-bind="css: scoreFeedback.iconClass, attr: scoreFeedback.iconAttr, pulse: scoreFeedback.update" aria-hidden="true"></span>

0 commit comments

Comments
 (0)