Single quotes for consistency, cache 'this' selector.
This commit is contained in:
parent
c770201061
commit
1595047777
|
@ -223,9 +223,10 @@
|
|||
return $('.navbar-toggle').toggleClass('active');
|
||||
});
|
||||
$body.on("click", ".js-toggle-diff-comments", function(e) {
|
||||
$(this).toggleClass('active');
|
||||
var notesHolders = $(this).closest(".diff-file").find(".notes_holder");
|
||||
if ($(this).hasClass('active')) {
|
||||
var $this = $(this);
|
||||
$this.toggleClass('active');
|
||||
var notesHolders = $this.closest('.diff-file').find('.notes_holder');
|
||||
if ($this.hasClass('active')) {
|
||||
notesHolders.show();
|
||||
} else {
|
||||
notesHolders.hide();
|
||||
|
|
Loading…
Reference in New Issue