Hover the sender name on gravatar and e-mail hovers as well.

This clarifies that clicking on any of those three pieces of
information will pop up the user info tooltip.

(imported from commit 1e57550d66acbb2e8d5d244d2997bbd394c334c3)
This commit is contained in:
Jessica McKellar
2012-11-06 13:30:16 -05:00
parent c654520c73
commit 0700b96f37
4 changed files with 24 additions and 3 deletions

View File

@@ -16,6 +16,20 @@ function register_onclick(message_row, message_id) {
});
}
function register_user_info_mouseover(message_row, message_id) {
message_row.find(".user_info_hover").mouseover(function (e) {
show_email(message_id);
message_row.find(".sender_name").addClass("sender_hovered");
});
}
function register_user_info_mouseout(message_row, message_id) {
message_row.find(".user_info_hover").mouseout(function (e) {
hide_email();
message_row.find(".sender_name").removeClass("sender_hovered");
});
}
function focus_on(field_id) {
// Call after autocompleting on a field, to advance the focus to
// the next input field.