Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-03-08 19:07:26 +0300
committerJacob Schatz <jschatz@gitlab.com>2017-03-08 19:07:26 +0300
commit1466b7eecc56194e2967393dec559912df20e9bb (patch)
tree65aedcd3326e459d43c6eb6e1cd78271eccc2aed /app/assets/javascripts/main.js
parentd20a6033858c316e20d5c3574c91f12be66fae17 (diff)
Added discussion comments avatars to diff
Diffstat (limited to 'app/assets/javascripts/main.js')
-rw-r--r--app/assets/javascripts/main.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js
index ae4dd64424c..79164edff0e 100644
--- a/app/assets/javascripts/main.js
+++ b/app/assets/javascripts/main.js
@@ -342,11 +342,11 @@ require('./zen_mode');
var notesHolders = $this.closest('.diff-file').find('.notes_holder');
$this.toggleClass('active');
if ($this.hasClass('active')) {
- notesHolders.show().find('.hide').show();
+ notesHolders.show().find('.hide, .content').show();
} else {
- notesHolders.hide();
+ notesHolders.hide().find('.content').hide();
}
- $this.trigger('blur');
+ $(document).trigger('toggle.comments');
return e.preventDefault();
});
$document.off('click', '.js-confirm-danger');