Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

Commit f0efd69

Browse files
committed
better jquery
1 parent b25553a commit f0efd69

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

js/settings.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,10 @@ function initAll() {
7373
});
7474

7575
$('.whatisthis').on('click', function() {
76-
var help = $(this).parents('li')
77-
.first()
78-
.find('.expandable')
79-
.first();
80-
help.toggleClass('expanded', !help.hasClass('expanded'));
76+
$(this).parents('li')
77+
.first()
78+
.find('.expandable')
79+
.toggleClass('expanded');
8180
});
8281
}
8382

0 commit comments

Comments
 (0)