mirror of https://github.com/zulip/zulip.git
Fix buggy computation of a user's name for user actions popover.
(imported from commit 4ee8aab9ece6ebf699c706cf0368180e714dcd6f)
This commit is contained in:
parent
16ffd539af
commit
dbeaeeaa3f
|
@ -1236,7 +1236,7 @@ $(function () {
|
|||
user_sidebar_popup_shown_this_click = true;
|
||||
|
||||
var email = $(e.target).find('a').attr('data-email');
|
||||
var name = $(e.target).find('a').text();
|
||||
var name = $(e.target).find('a').attr('data-name');
|
||||
|
||||
$(e.target).popover({
|
||||
content: templates.render('user_sidebar_actions', {'email': email,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{! User Presence rows }}
|
||||
<li class="user_sidebar_entry user_{{type}}">
|
||||
<a href="#" data-email="{{email}}" title="{{name}} {{type_desc}}"
|
||||
<a href="#" data-email="{{email}}" data-name="{{name}}" title="{{name}} {{type_desc}}"
|
||||
class="{{#if my_fullname}} my_fullname{{/if}}"><span class="count">(<span class="value"></span>) </span>{{name}}</a>
|
||||
</li>
|
||||
|
|
Loading…
Reference in New Issue