Commit 15950477 authored by Connor Shea's avatar Connor Shea

Single quotes for consistency, cache 'this' selector.

parent c7702010
...@@ -223,9 +223,10 @@ ...@@ -223,9 +223,10 @@
return $('.navbar-toggle').toggleClass('active'); return $('.navbar-toggle').toggleClass('active');
}); });
$body.on("click", ".js-toggle-diff-comments", function(e) { $body.on("click", ".js-toggle-diff-comments", function(e) {
$(this).toggleClass('active'); var $this = $(this);
var notesHolders = $(this).closest(".diff-file").find(".notes_holder"); $this.toggleClass('active');
if ($(this).hasClass('active')) { var notesHolders = $this.closest('.diff-file').find('.notes_holder');
if ($this.hasClass('active')) {
notesHolders.show(); notesHolders.show();
} else { } else {
notesHolders.hide(); notesHolders.hide();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment