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

Commit d1bbe58

Browse files
committed
updated assess to use this.logBookEvent
1 parent 636492f commit d1bbe58

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

runestone/assess/js/fitb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ FITB.prototype.checkFITBStorage = function () {
241241
this.evaluateAnswers();
242242
this.renderFITBFeedback();
243243
var answerInfo = "answer:" + this.given_arr + ":" + (this.isCorrect ? "correct" : "no");
244-
logBookEvent({"event": "fillb", "act": answerInfo, "div_id": this.divid});
244+
this.logBookEvent({"event": "fillb", "act": answerInfo, "div_id": this.divid});
245245
this.enableCompareButton.disabled = false;
246246
};
247247
FITB.prototype.evaluateAnswers = function () {

runestone/assess/js/mchoice.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ MultipleChoice.prototype.populateMCMALocalStorage = function () {
392392

393393
MultipleChoice.prototype.logMCMAsubmission = function () {
394394
var answerInfo = "answer:" + this.givenlog.substring(0, this.givenlog.length - 1) + ":" + (this.correctCount == this.correctList.length ? "correct" : "no");
395-
logBookEvent({"event": "mChoice", "act": answerInfo, "div_id": this.divid});
395+
this.logBookEvent({"event": "mChoice", "act": answerInfo, "div_id": this.divid});
396396
};
397397

398398

@@ -444,7 +444,7 @@ MultipleChoice.prototype.populateMCMFLocalStorage = function () {
444444

445445
MultipleChoice.prototype.logMCMFsubmission = function () {
446446
var answerInfo = "answer:" + this.givenArray[0] + ":" + (this.givenArray[0] == this.correctIndexList[0] ? "correct" : "no");
447-
logBookEvent({"event": "mChoice", "act": answerInfo, "div_id": this.divid});
447+
this.logBookEvent({"event": "mChoice", "act": answerInfo, "div_id": this.divid});
448448
};
449449

450450
MultipleChoice.prototype.renderMCMFFeedback = function (correct, feedbackText) {

runestone/assess/js/timed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ Timed.prototype.startAssessment = function () {
306306
this.running = 1;
307307
$(this.timedDiv).show();
308308
this.increment();
309-
logBookEvent({"event": "timedExam", "act": "start", "div_id": this.divid});
309+
this.logBookEvent({"event": "timedExam", "act": "start", "div_id": this.divid});
310310
localStorage.setItem(eBookConfig.email + ":" + this.divid, "started");
311311
}
312312
} else {
@@ -514,7 +514,7 @@ Timed.prototype.storeScore = function () {
514514
};
515515

516516
Timed.prototype.logScore = function () {
517-
logBookEvent({"event": "timedExam", "act": "finish", "div_id": this.divid, "correct": this.score, "incorrect": this.incorrect, "skipped": this.skipped, "time": this.timeTaken});
517+
this.logBookEvent({"event": "timedExam", "act": "finish", "div_id": this.divid, "correct": this.score, "incorrect": this.incorrect, "skipped": this.skipped, "time": this.timeTaken});
518518
};
519519

520520
Timed.prototype.restoreFromStorage = function () {

0 commit comments

Comments
 (0)