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

Commit c06c279

Browse files
committed
fix grading status indicator
1 parent 75c6ea5 commit c06c279

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

runestone/parsons/js/parsons.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,6 +1283,7 @@ export default class Parsons extends RunestoneBase {
12831283
this.grade = this.grader.grade();
12841284
if (this.grade == "correct") {
12851285
this.hasSolved = true;
1286+
this.correct = true;
12861287
localStorage.setItem(this.adaptiveId + "Solved", true);
12871288
this.recentAttempts = this.checkCount;
12881289
this.checkCount = 0;
@@ -2062,6 +2063,7 @@ export default class Parsons extends RunestoneBase {
20622063
async disableInteraction() {
20632064
// Disable blocks
20642065
await this.checkServerComplete;
2066+
console.log("disabling blocks");
20652067
if (this.blocks !== undefined) {
20662068
for (var i = 0; i < this.blocks.length; i++) {
20672069
var block = this.blocks[i];

runestone/timed/js/timed.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,7 @@ export default class Timed extends RunestoneBase {
826826
let currentQuestion = this.renderedQuestionArray[i];
827827
// set the state to forreview so we know that feedback may be appropriate
828828
currentQuestion.state = "forreview";
829+
currentQuestion.question.disableInteraction();
829830
}
830831

831832
if (!this.showFeedback) {

0 commit comments

Comments
 (0)