mirror of https://github.com/zulip/zulip.git
Now that mouseover doesn't select, show_email needs to take an ID.
(imported from commit dfa737e78da0772e99fda34318ed879896fb5655)
This commit is contained in:
parent
9cbdbc4893
commit
f2b808a976
|
@ -28,7 +28,7 @@
|
||||||
<td class="pointer"><p></p></td>
|
<td class="pointer"><p></p></td>
|
||||||
<td class="messagebox{{^include_sender}} prev_is_same_sender{{/include_sender}}" onclick="select_zephyr_by_id({{id}}); respond_to_zephyr();">
|
<td class="messagebox{{^include_sender}} prev_is_same_sender{{/include_sender}}" onclick="select_zephyr_by_id({{id}}); respond_to_zephyr();">
|
||||||
{{#include_sender}}
|
{{#include_sender}}
|
||||||
<span class="zephyr_label_clickable zephyr_sender" onmouseover="show_email();" onmouseout="hide_email();">
|
<span class="zephyr_label_clickable zephyr_sender" onmouseover="show_email({{id}});" onmouseout="hide_email();">
|
||||||
<span class="zephyr_sender_name">{{sender_name}}</span> <span class="zephyr_sender_email invisible">{{sender_email}}</span>
|
<span class="zephyr_sender_name">{{sender_name}}</span> <span class="zephyr_sender_email invisible">{{sender_email}}</span>
|
||||||
</span>
|
</span>
|
||||||
{{/include_sender}}
|
{{/include_sender}}
|
||||||
|
|
|
@ -494,9 +494,9 @@ function hide_email() {
|
||||||
$('.zephyr_sender_email').addClass('invisible');
|
$('.zephyr_sender_email').addClass('invisible');
|
||||||
}
|
}
|
||||||
|
|
||||||
function show_email() {
|
function show_email(zephyr_id) {
|
||||||
hide_email();
|
hide_email();
|
||||||
selected_zephyr.find('.zephyr_sender_email').removeClass('invisible');
|
get_zephyr_row(zephyr_id).find('.zephyr_sender_email').removeClass('invisible');
|
||||||
}
|
}
|
||||||
|
|
||||||
// NB: This just binds to current elements, and won't bind to elements
|
// NB: This just binds to current elements, and won't bind to elements
|
||||||
|
|
Loading…
Reference in New Issue