mirror of https://github.com/zulip/zulip.git
Display email on currently moused-over message.
(imported from commit ae27dc6068fefa9df7b5a03992df0253da9ec61a)
This commit is contained in:
parent
9e090b2d28
commit
c654520c73
|
@ -46,7 +46,7 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/include_recipient}}
|
{{/include_recipient}}
|
||||||
<tr zid="{{id}}" id="{{dom_id}}"
|
<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}});">
|
onclick="select_message_by_id({{id}});">
|
||||||
<td class="message_picture">
|
<td class="message_picture">
|
||||||
{{#include_sender}}
|
{{#include_sender}}
|
||||||
|
@ -57,12 +57,13 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="pointer"><p></p></td>
|
<td class="pointer"><p></p></td>
|
||||||
<td class="messagebox{{^include_sender}} prev_is_same_sender{{/include_sender}}{{^is_stream}} personal-message{{/is_stream}}"
|
<td class="messagebox{{^include_sender}} prev_is_same_sender{{/include_sender}}{{^is_stream}} personal-message{{/is_stream}}"
|
||||||
onmousedown="mousedown();" onmousemove="mousemove();">
|
onmousedown="mousedown();"
|
||||||
{{#include_sender}}
|
onmousemove="mousemove();"
|
||||||
<span class="message_sender"
|
|
||||||
onclick="userinfo_popover(event, this, {{id}});"
|
|
||||||
onmouseover="show_email({{id}});"
|
onmouseover="show_email({{id}});"
|
||||||
onmouseout="hide_email();">
|
onmouseout="hide_email();">
|
||||||
|
{{#include_sender}}
|
||||||
|
<span class="message_sender"
|
||||||
|
onclick="userinfo_popover(event, this, {{id}});">
|
||||||
<a class="sender_name">{{sender_full_name}}</a>
|
<a class="sender_name">{{sender_full_name}}</a>
|
||||||
<span class="sender_email invisible">{{sender_email}}</span>
|
<span class="sender_email invisible">{{sender_email}}</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -36,7 +36,11 @@ function hide_email() {
|
||||||
|
|
||||||
function show_email(message_id) {
|
function show_email(message_id) {
|
||||||
hide_email();
|
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) {
|
function report_message(response, status_box, cls) {
|
||||||
|
|
Loading…
Reference in New Issue