Fix buggy computation of a user's name for user actions popover.

(imported from commit 4ee8aab9ece6ebf699c706cf0368180e714dcd6f)
This commit is contained in:
Tim Abbott 2013-06-06 13:59:56 -04:00
parent 16ffd539af
commit dbeaeeaa3f
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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>