Skip to content

Commit 08afb2f

Browse files
author
jordanmccullough
committed
Simplify slide-only toggle logic
1 parent 99349fa commit 08afb2f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

_javascript/curriculum.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ $(function(){
33

44
// Bind checkbox/label click for slide toggle
55
$("#slide-only-toggle").change(function(){
6-
var checkState = $("#slide-only-toggle").attr("checked");
7-
$(".materials > *").toggleClass("hidden");
8-
$(".slide").toggleClass("hidden");
6+
$(".materials > *").not(".slide").toggleClass("hidden");
97
});
108

119
// Parse username from querystring
@@ -86,7 +84,6 @@ $(function(){
8684
}).appendTo("#teacher-following");
8785

8886
$("#teacher").toggleClass("hidden");
89-
$("#teacher").toggleClass("slide");
9087

9188
updateSlideSize();
9289
}

0 commit comments

Comments
 (0)