Update own name in sidebar when updating name globally.

We now add the my_fullname class to the entry for you in the sidebar so
that we can automatically update this element when changing your name.

This closes trac #979.

(imported from commit f1473d6bb6f18810311d42c85d4b57aab9966498)
This commit is contained in:
Luke Faraone 2013-03-07 11:48:20 -05:00
parent 34ecfb339f
commit f73929c952
2 changed files with 4 additions and 1 deletions

View File

@ -1004,6 +1004,9 @@ exports.set_presence_list = function (users, presence_info) {
.text(name))
.addClass('user_' + type)
.attr('title', name + presence_descriptions[type]);
if (email === this.email) {
entry.addClass('my_fullname');
}
$('#user_presences').append(entry);
}

View File

@ -132,7 +132,7 @@ a:hover code {
padding-left: 0.5em;
}
.my_fullname {
#my_information .my_fullname {
font-weight: bold;
white-space: nowrap;
}