a should have the title, not img

part 1 of https://github.com/NodeBB/nodebb-theme-persona/issues/38
v1.18.x
psychobunny 10 years ago
parent 30df61e7a5
commit 63653662e0

@ -83,14 +83,14 @@ define('forum/topic/browsing', ['translator'], function(translator) {
activeEl.append(userEl); activeEl.append(userEl);
} }
activeEl.find('a[data-uid] img').tooltip({ activeEl.find('a[data-uid]').tooltip({
placement: 'top' placement: 'top'
}); });
} }
function createUserIcon(uid, picture, userslug, username) { function createUserIcon(uid, picture, userslug, username) {
if(!$('[component="topic/browsing/list"]').find('[data-uid="' + uid + '"]').length) { 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>');
} }
} }

Loading…
Cancel
Save