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

Commit 8d47a63

Browse files
committed
updated timed assessments to load in the correct order to prevent dependency issues
1 parent 136165c commit 8d47a63

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

runestone/assess/js/timedfitb.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,8 @@ TimedFITB.prototype.hideFeedback = function () {
4646
};
4747

4848
TimedFITB.prototype.processTimedSubmission = function () {
49+
for (var i = 0; i < this.blankArray.length; i++) {
50+
this.blankArray[i].disabled = true;
51+
}
4952
this.checkFITBStorage();
5053
};

runestone/assess/js/timedmc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ TimedMC.prototype.hideFeedback = function () {
134134
};
135135

136136
TimedMC.prototype.processTimedSubmission = function () {
137+
for (var i = 0; i < this.optionArray.length; i++) {
138+
this.optionArray[i]["input"].disabled = true;
139+
}
137140
if (this.multipleanswers) {
138141
this.processMCMASubmission();
139142
} else {

runestone/clickableArea/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
def setup(app):
2424
app.add_directive('clickablearea',ClickableArea)
2525
app.add_javascript('clickable.js')
26+
app.add_javascript('timedclickable.js')
2627
app.add_stylesheet('clickable.css')
2728

2829
app.add_node(ClickableAreaNode, html=(visit_ca_node, depart_ca_node))

runestone/dragndrop/dragndrop.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
def setup(app):
2424
app.add_directive('dragndrop',DragNDrop)
2525
app.add_javascript('dragndrop.js')
26+
app.add_javascript('timeddnd.js')
2627
app.add_stylesheet('dragndrop.css')
2728

2829
app.add_node(DragNDropNode, html=(visit_dnd_node, depart_dnd_node))

0 commit comments

Comments
 (0)