Display email on currently moused-over message.

(imported from commit ae27dc6068fefa9df7b5a03992df0253da9ec61a)
This commit is contained in:
Waseem Daher 2012-11-05 17:30:20 -05:00 committed by Jessica McKellar
parent 9e090b2d28
commit c654520c73
2 changed files with 11 additions and 6 deletions

View File

@ -46,7 +46,7 @@
{{/if}}
{{/include_recipient}}
<tr zid="{{id}}" id="{{dom_id}}"
class="message_row{{^is_stream}} personal-message{{/is_stream}}"
class="message_row{{^is_stream}} personal-message{{/is_stream}}{{#include_sender}} include-sender{{/include_sender}}"
onclick="select_message_by_id({{id}});">
<td class="message_picture">
{{#include_sender}}
@ -57,12 +57,13 @@
</td>
<td class="pointer"><p></p></td>
<td class="messagebox{{^include_sender}} prev_is_same_sender{{/include_sender}}{{^is_stream}} personal-message{{/is_stream}}"
onmousedown="mousedown();" onmousemove="mousemove();">
onmousedown="mousedown();"
onmousemove="mousemove();"
onmouseover="show_email({{id}});"
onmouseout="hide_email();">
{{#include_sender}}
<span class="message_sender"
onclick="userinfo_popover(event, this, {{id}});"
onmouseover="show_email({{id}});"
onmouseout="hide_email();">
onclick="userinfo_popover(event, this, {{id}});">
<a class="sender_name">{{sender_full_name}}</a>
<span class="sender_email invisible">{{sender_email}}</span>
</span>

View File

@ -36,7 +36,11 @@ function hide_email() {
function show_email(message_id) {
hide_email();
rows.get(message_id).find('.sender_email').removeClass('invisible');
var row_with_email = rows.get(message_id);
while (!row_with_email.hasClass('include-sender')) {
row_with_email = row_with_email.prev();
}
row_with_email.find('.sender_email').removeClass('invisible');
}
function report_message(response, status_box, cls) {