diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-07-25 14:26:04 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-07-25 14:26:04 +0200 |
commit | 6d29b362003c15334577c596f676a0fb599d7bdb (patch) | |
tree | 945955ec8d5c42ec034677bcda7597b296ee0eb7 /apps | |
parent | 70fa73404f9de1545e9907668a9369346cc66507 (diff) | |
download | nextcloud-server-6d29b362003c15334577c596f676a0fb599d7bdb.tar.gz nextcloud-server-6d29b362003c15334577c596f676a0fb599d7bdb.zip |
Limit small avatar rendering only to inline mentions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/comments/js/commentstabview.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js index c3903674e84..db38d055af4 100644 --- a/apps/comments/js/commentstabview.js +++ b/apps/comments/js/commentstabview.js @@ -386,7 +386,11 @@ _postRenderItem: function($el, editionMode) { $el.find('.has-tooltip').tooltip(); - $el.find('.avatar').each(function () { + var inlineAvatars = $el.find('.message .avatar'); + if ($($el.context).hasClass('message')) { + inlineAvatars = $el.find('.avatar'); + } + inlineAvatars.each(function () { var $this = $(this); $this.avatar($this.attr('data-username'), 16); }); |