Skip to content

Commit 796c623

Browse files
committed
Fixed unknown variable
1 parent 136ad0f commit 796c623

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lms/static/checker.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,5 @@ function trackFinished(exerciseId, solutionId, element) {
2323
}
2424

2525
window.addEventListener('lines-numbered', () => {
26-
const exerciseId = codeView.dataset.exercise;
27-
trackFinished(exerciseId, window.solutionId, document.getElementById('save-check'));
26+
trackFinished(window.exerciseId, window.solutionId, document.getElementById('save-check'));
2827
});

lms/static/comments.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ window.addEventListener('load', () => {
148148
const codeElementData = document.getElementById('code-view').dataset;
149149
window.solutionId = codeElementData.id;
150150
window.fileId = codeElementData.file;
151+
window.exerciseId = codeElementData.exercise;
151152
sessionStorage.setItem('role', codeElementData.role);
152153
sessionStorage.setItem('solver', codeElementData.solver);
153154
sessionStorage.setItem('allowedComment', codeElementData.allowedComment);

0 commit comments

Comments
 (0)