mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-27 01:39:53 +01:00
a should have the title, not img
part 1 of https://github.com/NodeBB/nodebb-theme-persona/issues/38
This commit is contained in:
@@ -83,14 +83,14 @@ define('forum/topic/browsing', ['translator'], function(translator) {
|
||||
activeEl.append(userEl);
|
||||
}
|
||||
|
||||
activeEl.find('a[data-uid] img').tooltip({
|
||||
activeEl.find('a[data-uid]').tooltip({
|
||||
placement: 'top'
|
||||
});
|
||||
}
|
||||
|
||||
function createUserIcon(uid, picture, userslug, username) {
|
||||
if(!$('[component="topic/browsing/list"]').find('[data-uid="' + uid + '"]').length) {
|
||||
return $('<div class="inline-block"><a data-uid="' + uid + '" data-count="1" href="' + config.relative_path + '/user/' + userslug + '"><img title="' + username + '" src="'+ picture +'"/></a></div>');
|
||||
return $('<div class="inline-block"><a title="' + username + '" data-uid="' + uid + '" data-count="1" href="' + config.relative_path + '/user/' + userslug + '"><img src="'+ picture +'"/></a></div>');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user