Limit small avatar rendering only to inline mentions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
70fa73404f
commit
6d29b36200
|
@ -386,7 +386,11 @@
|
||||||
|
|
||||||
_postRenderItem: function($el, editionMode) {
|
_postRenderItem: function($el, editionMode) {
|
||||||
$el.find('.has-tooltip').tooltip();
|
$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);
|
var $this = $(this);
|
||||||
$this.avatar($this.attr('data-username'), 16);
|
$this.avatar($this.attr('data-username'), 16);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue