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

Commit 9339733

Browse files
committed
Hide commentary if not instructor
1 parent 5743152 commit 9339733

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runestone/common/js/pretext.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ function setupPTXEvents() {
1919
let code = $(container[0]).find(".sagecell_input")[0].textContent;
2020
rb.logBookEvent({ event: "sage", act: "run", div_id: container[0].id });
2121
});
22+
if (!eBookConfig.isInstructor) {
23+
$(".commentary").hide();
24+
}
2225
}
2326

2427
window.addEventListener("load", function () {

0 commit comments

Comments
 (0)