Now that mouseover doesn't select, show_email needs to take an ID.

(imported from commit dfa737e78da0772e99fda34318ed879896fb5655)
This commit is contained in:
Jessica McKellar 2012-09-26 15:10:35 -04:00
parent 9cbdbc4893
commit f2b808a976
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@
<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();">
{{#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>
{{/include_sender}}

View File

@ -494,9 +494,9 @@ function hide_email() {
$('.zephyr_sender_email').addClass('invisible');
}
function show_email() {
function show_email(zephyr_id) {
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