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

Commit d3c8160

Browse files
author
Xinying329
committed
Changed log event feature and removed debug lines
- Added await inner the async method - Turn "save&run" back to "slide" - Removed debug lines
1 parent e535a2e commit d3c8160

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

runestone/activecode/js/activecode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ export class ActiveCode extends RunestoneBase {
648648
$(this.timestampP).text(`${curVal} - ${pos + 1} of ${outOf}`);
649649
this.logBookEvent({
650650
event: "activecode",
651-
act: "save&run:" + curVal,
651+
act: "slide" + curVal,
652652
div_id: this.divid,
653653
});
654654
};
@@ -1275,7 +1275,7 @@ Yet another is that there is an internal error. The internal error message is:
12751275
if (this.is_toggle && this.runCount == 3) {
12761276
if (this.errinfo != "success" || this.unit_results.substring(8,11)!=100.0){
12771277
setTimeout(function() {alert("Help is Available Using the Toggle Question Selector! You can try the Mixed-up Question first."); }, 500);
1278-
this.logBookEvent({
1278+
await this.logBookEvent({
12791279
event: "togglealert",
12801280
act: "Help is Available Using the Toggle Question Selector",
12811281
div_id: this.divid,

runestone/parsons/js/parsons.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2042,10 +2042,8 @@ export default class Parsons extends RunestoneBase {
20422042
//this.helpButton.disabled = true;
20432043
//}
20442044
// if less than 3 attempts
2045-
console.log("msg_parson_atleast_three_attempts")
20462045
if (this.numDistinct < 3) {
20472046
alert($.i18n("msg_parson_atleast_three_attempts"));
2048-
console.log("msg_parson_atleast_three_attempts")
20492047
}
20502048
// otherwise give help
20512049
else {

0 commit comments

Comments
 (0)