|
|
|
@ -71,7 +71,6 @@ define('forum/topic/browsing', function() {
|
|
|
|
|
if (!user.userslug) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
console.log(user);
|
|
|
|
|
var browsingList = $('[component="topic/browsing/list"]');
|
|
|
|
|
var userEl = createUserIcon(user.uid, user.picture, user.userslug, user.username, user['icon:bgColor'], user['icon:text']);
|
|
|
|
|
var isSelf = parseInt(user.uid, 10) === parseInt(app.user.uid, 10);
|
|
|
|
@ -88,7 +87,6 @@ define('forum/topic/browsing', function() {
|
|
|
|
|
|
|
|
|
|
function createUserIcon(uid, picture, userslug, username, iconBg, iconText) {
|
|
|
|
|
if (!$('[component="topic/browsing/list"]').find('[data-uid="' + uid + '"]').length) {
|
|
|
|
|
console.log(iconBg, iconText);
|
|
|
|
|
var imgOrIcon = picture ?
|
|
|
|
|
'<img src="'+ picture +'" />' :
|
|
|
|
|
'<div class="user-icon" style="background-color: ' + iconBg + ';">' + iconText + '</div>';
|
|
|
|
|