mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-29 07:03:55 +03:00
Fix issue with user.fullname (#8902)
This commit is contained in:
parent
bb04fb55d7
commit
1b7402bd1d
1 changed files with 5 additions and 3 deletions
|
@ -63,11 +63,13 @@
|
||||||
noMatchTemplate: function () { return null },
|
noMatchTemplate: function () { return null },
|
||||||
menuItemTemplate: function (item) {
|
menuItemTemplate: function (item) {
|
||||||
var user = item.original;
|
var user = item.original;
|
||||||
var itemStr = '<img src="' + user.avatar + '"/><span class="name">' + user.name + '</span>';
|
var item = $('<div/>')
|
||||||
|
item.append($('<img/>', {'src': user.avatar}))
|
||||||
|
item.append($('<span/>', {'class': 'name'}).text(user.name))
|
||||||
if (user.fullname && user.fullname != '') {
|
if (user.fullname && user.fullname != '') {
|
||||||
itemStr += '<span class="fullname">' + user.fullname + '</span>';
|
item.append($('<span/>', {'class': 'fullname'}).text(user.fullname))
|
||||||
}
|
}
|
||||||
return itemStr;
|
return item.html();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var content = document.getElementById('content');
|
var content = document.getElementById('content');
|
||||||
|
|
Loading…
Reference in a new issue