aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeripath2019-11-10 00:22:21 +0000
committerGitHub2019-11-10 00:22:21 +0000
commit46ff639a13fe1ea20efcd4b77ee9999f9cd5b391 (patch)
tree0e466a5e3ffe67481c9204fca6472c8f08d2a88f
parent0b91aaf62a816d019ec70c591b8ad7f1f24d9bf4 (diff)
Fix issue with user.fullname (#8904)
-rw-r--r--templates/base/footer.tmpl8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl
index 13718620d..2a4b895dc 100644
--- a/templates/base/footer.tmpl
+++ b/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');