apply tooltip to all avatars

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2017-11-21 12:52:49 +01:00
parent 077381c7b3
commit f8b9ddc0ea
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 1 additions and 2 deletions

View File

@ -314,9 +314,8 @@ OC.Share = _.extend(OC.Share || {}, {
var avatarElement = action.find('.avatar'); var avatarElement = action.find('.avatar');
avatarElement.each(function () { avatarElement.each(function () {
$(this).avatar($(this).data('username'), 32); $(this).avatar($(this).data('username'), 32);
$(this).tooltip({placement: 'top'});
}); });
action.find('.icon-shared + span').tooltip({placement: 'top'});
} }
} else { } else {
action.html('<span class="hidden-visually">' + t('core', 'Shared') + '</span>').prepend(icon); action.html('<span class="hidden-visually">' + t('core', 'Shared') + '</span>').prepend(icon);