Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 0be1114

Browse files
committed
do not show on a peer page
1 parent f0999c0 commit 0be1114

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

runestone/mchoice/js/mchoice.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export default class MultipleChoice extends RunestoneBase {
227227
} // end else
228228
this.optsForm.appendChild(this.submitButton);
229229
// Create compare button
230-
if (this.useRunestoneServices) {
230+
if (this.useRunestoneServices && !eBookConfig.peer) {
231231
this.compareButton = document.createElement("button");
232232
$(this.compareButton).attr({
233233
class: "btn btn-default",
@@ -371,9 +371,11 @@ export default class MultipleChoice extends RunestoneBase {
371371
if (logFlag) {
372372
this.logMCMAsubmission();
373373
}
374-
this.renderMCMAFeedBack();
375-
if (this.useRunestoneServices) {
376-
this.enableMCComparison();
374+
if (!eBookConfig.peer) {
375+
this.renderMCMAFeedBack();
376+
if (this.useRunestoneServices) {
377+
this.enableMCComparison();
378+
}
377379
}
378380
}
379381

@@ -502,9 +504,11 @@ export default class MultipleChoice extends RunestoneBase {
502504
if (logFlag) {
503505
this.logMCMFsubmission();
504506
}
505-
this.renderMCMFFeedback();
506-
if (this.useRunestoneServices) {
507-
this.enableMCComparison();
507+
if (!eBookConfig.peer) {
508+
this.renderMCMFFeedback();
509+
if (this.useRunestoneServices) {
510+
this.enableMCComparison();
511+
}
508512
}
509513
}
510514

0 commit comments

Comments
 (0)