Skip to content

Commit 3771367

Browse files
committed
bah
1 parent 7ea7710 commit 3771367

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎v3/js/pytutor.js‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,8 +512,18 @@ ExecutionVisualizer.prototype.render = function() {
512512

513513

514514
if (this.params.editCodeBaseURL) {
515+
// kinda kludgy
516+
var pyVer = '2'; // default
517+
if (this.params.lang === 'js') {
518+
pyVer = 'js';
519+
} else if (this.params.lang === 'java') {
520+
pyVer = 'java';
521+
} else if (this.params.lang === 'py3') {
522+
pyVer = '3';
523+
}
524+
515525
var urlStr = $.param.fragment(this.params.editCodeBaseURL,
516-
{code: this.curInputCode},
526+
{code: this.curInputCode, py: pyVer},
517527
2);
518528
this.domRoot.find('#editBtn').attr('href', urlStr);
519529
}

0 commit comments

Comments
 (0)