Skip to content

Commit 6951d40

Browse files
authored
Merge pull request #148 from rgaiacs/show-challenges
Make challenges and discussion visibles
2 parents e4e394b + 6f6cba4 commit 6951d40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/js/lesson.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ $("table").addClass("table table-striped");
33

44

55
// Handle foldable challenges and solutions (on click and at start).
6-
$(".challenge,.discussion,.solution").click(function(event) {
6+
$(".solution").click(function(event) {
77
var trigger = $(event.target).has(".fold-unfold").size() > 0
88
|| $(event.target).filter(".fold-unfold").size() > 0;
99
if (trigger) {
@@ -12,7 +12,7 @@ $(".challenge,.discussion,.solution").click(function(event) {
1212
event.stopPropagation();
1313
}
1414
});
15-
$(".challenge,.discussion,.solution").each(function() {
15+
$(".solution").each(function() {
1616
$(">*:not(h2)", this).toggle();
1717
var h2 = $("h2:first", this);
1818
h2.append("<span class='fold-unfold glyphicon glyphicon-collapse-down'></span>");

0 commit comments

Comments
 (0)