From dbeaeeaa3f8706ce7e7e6eb12867f38aa3a28046 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 6 Jun 2013 13:59:56 -0400 Subject: [PATCH] Fix buggy computation of a user's name for user actions popover. (imported from commit 4ee8aab9ece6ebf699c706cf0368180e714dcd6f) --- zephyr/static/js/ui.js | 2 +- zephyr/static/templates/user_presence_row.handlebars | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zephyr/static/js/ui.js b/zephyr/static/js/ui.js index a3168b8ddb..fc903baa0b 100644 --- a/zephyr/static/js/ui.js +++ b/zephyr/static/js/ui.js @@ -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, diff --git a/zephyr/static/templates/user_presence_row.handlebars b/zephyr/static/templates/user_presence_row.handlebars index b42aab1c02..d4a5e28a13 100644 --- a/zephyr/static/templates/user_presence_row.handlebars +++ b/zephyr/static/templates/user_presence_row.handlebars @@ -1,5 +1,5 @@ {{! User Presence rows }}
  • -() {{name}}