From 4684e8c9db002647fb368ba2ca94c66ba6cb21b5 Mon Sep 17 00:00:00 2001 From: ericsonga Date: Mon, 8 Aug 2016 14:46:31 -0400 Subject: [PATCH] Added logging of pause and resume for the timed exam I added logging of pause and resume for the timed exam --- runestone/assess/js/timed.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runestone/assess/js/timed.js b/runestone/assess/js/timed.js index 8011b20b6..00ee67f23 100644 --- a/runestone/assess/js/timed.js +++ b/runestone/assess/js/timed.js @@ -401,11 +401,13 @@ Timed.prototype.startAssessment = function () { Timed.prototype.pauseAssessment = function () { if (this.done === 0) { if (this.running === 1) { + this.logBookEvent({"event": "timedExam", "act": "pause", "div_id": this.divid}); this.running = 0; this.paused = 1; this.pauseBtn.innerHTML = "Resume"; $(this.timedDiv).hide(); } else { + this.logBookEvent({"event": "timedExam", "act": "resume", "div_id": this.divid}); this.running = 1; this.paused = 0; this.increment();