Skip to content

Commit

Permalink
Fix issue with user.fullname (#8903)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeripath committed Nov 10, 2019
1 parent ca69ded commit b27cac0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions templates/base/footer.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@
noMatchTemplate: function () { return null },
menuItemTemplate: function (item) {
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 != '') {
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');
Expand Down

0 comments on commit b27cac0

Please sign in to comment.