Browse Source

Fix issue with user.fullname (#8903)

release/v1.10
zeripath 3 years ago
committed by GitHub
parent
commit
b27cac021f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      templates/base/footer.tmpl

8
templates/base/footer.tmpl

@ -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');

Loading…
Cancel
Save