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

Commit 1b1ee44

Browse files
committed
undo disabling after one answer
1 parent 1e5ae1f commit 1b1ee44

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

runestone/mchoice/js/mchoice.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,6 @@ export default class MultipleChoice extends RunestoneBase {
221221
function (ev) {
222222
ev.preventDefault();
223223
this.processMCMFSubmission(true);
224-
if (eBookConfig.peer) {
225-
this.submitButton.disabled = true;
226-
this.disableInteraction();
227-
}
228224
}.bind(this),
229225
false
230226
);
@@ -380,6 +376,10 @@ export default class MultipleChoice extends RunestoneBase {
380376
if (this.useRunestoneServices) {
381377
this.enableMCComparison();
382378
}
379+
} else {
380+
// acknowledge submission
381+
$(this.feedBackDiv).html("<p>Your Answer has been recorded</p>");
382+
$(this.feedBackDiv).attr("class", "alert alert-info");
383383
}
384384
}
385385

@@ -518,6 +518,10 @@ export default class MultipleChoice extends RunestoneBase {
518518
if (this.useRunestoneServices) {
519519
this.enableMCComparison();
520520
}
521+
} else {
522+
// acknowledge submission
523+
$(this.feedBackDiv).html("<p>Your Answer has been recorded</p>");
524+
$(this.feedBackDiv).attr("class", "alert alert-info");
521525
}
522526
}
523527

0 commit comments

Comments
 (0)