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

Commit 1203ed3

Browse files
committed
include language and partner for all languages
1 parent 6375481 commit 1203ed3

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

runestone/activecode/js/activecode.js

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,8 @@ ActiveCode.prototype.runProg = function () {
11851185
'errinfo': err.toString(),
11861186
'to_save': saveCode,
11871187
'prefix': self.pretext,
1188-
'suffix': self.suffix
1188+
'suffix': self.suffix,
1189+
'partner': this.partner,
11891190
}); // Log the run event
11901191
self.addErrorMessage(err)
11911192
});
@@ -1272,9 +1273,11 @@ JSActiveCode.prototype.runProg = function() {
12721273
'div_id': this.divid,
12731274
'code': this.editor.getValue(),
12741275
'errinfo': einfo,
1276+
'lang': this.language,
12751277
'to_save': saveCode,
12761278
'prefix': this.pretext,
1277-
'suffix': this.suffix
1279+
'suffix': this.suffix,
1280+
'partner': this.partner
12781281
}); // Log the run event
12791282

12801283

@@ -1314,7 +1317,9 @@ HTMLActiveCode.prototype.runProg = function () {
13141317
'errinfo': 'success',
13151318
'to_save': saveCode,
13161319
'prefix': this.pretext,
1317-
'suffix': this.suffix
1320+
'suffix': this.suffix,
1321+
'lang': this.language,
1322+
'partner': this.partner
13181323
}); // Log the run event
13191324

13201325

@@ -2095,7 +2100,14 @@ LiveCode.prototype.runProg_callback = function(data) {
20952100
} else {
20962101
logresult = result.outcome;
20972102
}
2098-
this.logRunEvent({'div_id': this.divid, 'code': source, 'errinfo': logresult, 'to_save':saveCode, 'event':'livecode'});
2103+
this.logRunEvent({'div_id': this.divid,
2104+
'code': source,
2105+
'errinfo': logresult,
2106+
'to_save':saveCode,
2107+
'lang': this.language,
2108+
'event':'livecode',
2109+
'partner': this.partner,
2110+
});
20992111
switch (result.outcome) {
21002112
case 15:
21012113
$(odiv).html(result.stdout.replace(/\n/g, "<br>"));

0 commit comments

Comments
 (0)