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

Commit fef3cee

Browse files
committed
Add votenum to act info in log
1 parent 11310e1 commit fef3cee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

runestone/mchoice/js/mchoice.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,9 @@ export default class MultipleChoice extends RunestoneBase {
476476
correct: correct,
477477
div_id: this.divid,
478478
};
479+
if (eBookConfig.peer && typeof studentVoteCount !== "undefined") {
480+
data.act = data.act + `:vote${studentVoteCount}`;
481+
}
479482
if (typeof sid !== "undefined") {
480483
data.sid = sid;
481484
}
@@ -551,6 +554,9 @@ export default class MultipleChoice extends RunestoneBase {
551554
correct: correct,
552555
div_id: this.divid,
553556
};
557+
if (eBookConfig.peer && typeof studentVoteCount !== "undefined") {
558+
data.act = data.act + `:vote${studentVoteCount}`;
559+
}
554560
if (typeof sid !== "undefined") {
555561
data.sid = sid;
556562
}

0 commit comments

Comments
 (0)