Add descriptive tooltip for avatar status

This commit is contained in:
Hadi Nategh 2019-07-31 11:43:36 +02:00
parent f4840d1d87
commit 33aa092453
7 changed files with 2 additions and 12 deletions

View File

@ -467,7 +467,7 @@
if (!$menu.is(":visible")) if (!$menu.is(":visible"))
{ {
$body.on('click', function(e){ $body.on('click', function(e){
if (e.target.id != 'topmenu_info_user_avatar') if (e.target.id != 'topmenu_info_user_avatar' && jQuery(e.target).parents('#topmenu_info_user_avatar').length < 1)
{ {
jQuery(this).off(e); jQuery(this).off(e);
$menu.toggle(); $menu.toggle();

View File

@ -639,7 +639,7 @@ abstract class Framework extends Framework\Extra
return '<span title="'.Accounts::format_username().'" class="avatar"><img src="'.Egw::link('/api/avatar.php', array( return '<span title="'.Accounts::format_username().'" class="avatar"><img src="'.Egw::link('/api/avatar.php', array(
'account_id' => $GLOBALS['egw_info']['user']['account_id'], 'account_id' => $GLOBALS['egw_info']['user']['account_id'],
)).'"/>'.(!empty($stat) ? )).'"/>'.(!empty($stat) ?
'<span class="fw_avatar_stat '.$stat['class'].'">'.$stat['body'].'</span>' : '').'</span>'; '<span class="fw_avatar_stat '.$stat['class'].'" title="'.$stat['title'].'">'.$stat['body'].'</span>' : '').'</span>';
} }
/** /**

View File

@ -4931,11 +4931,9 @@ td.message span.message {
border: none; border: none;
margin-top: 2px; margin-top: 2px;
margin-left: 1px; margin-left: 1px;
pointer-events: none;
} }
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span img { #egw_fw_topmenu_info_items #topmenu_info_user_avatar span img {
width: 40px; width: 40px;
pointer-events: none;
} }
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span span.fw_avatar_stat { #egw_fw_topmenu_info_items #topmenu_info_user_avatar span span.fw_avatar_stat {
position: absolute; position: absolute;

View File

@ -4920,11 +4920,9 @@ td.message span.message {
border: none; border: none;
margin-top: 2px; margin-top: 2px;
margin-left: 1px; margin-left: 1px;
pointer-events: none;
} }
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span img { #egw_fw_topmenu_info_items #topmenu_info_user_avatar span img {
width: 40px; width: 40px;
pointer-events: none;
} }
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span span.fw_avatar_stat { #egw_fw_topmenu_info_items #topmenu_info_user_avatar span span.fw_avatar_stat {
position: absolute; position: absolute;

View File

@ -4931,11 +4931,9 @@ td.message span.message {
border: none; border: none;
margin-top: 2px; margin-top: 2px;
margin-left: 1px; margin-left: 1px;
pointer-events: none;
} }
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span img { #egw_fw_topmenu_info_items #topmenu_info_user_avatar span img {
width: 40px; width: 40px;
pointer-events: none;
} }
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span span.fw_avatar_stat { #egw_fw_topmenu_info_items #topmenu_info_user_avatar span span.fw_avatar_stat {
position: absolute; position: absolute;

View File

@ -49,10 +49,8 @@
border: none; border: none;
margin-top: 2px; margin-top: 2px;
margin-left: 1px; margin-left: 1px;
pointer-events: none;
img { img {
width: 40px; width: 40px;
pointer-events: none;
} }
span.fw_avatar_stat { span.fw_avatar_stat {
position: absolute; position: absolute;

View File

@ -4942,11 +4942,9 @@ td.message span.message {
border: none; border: none;
margin-top: 2px; margin-top: 2px;
margin-left: 1px; margin-left: 1px;
pointer-events: none;
} }
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span img { #egw_fw_topmenu_info_items #topmenu_info_user_avatar span img {
width: 40px; width: 40px;
pointer-events: none;
} }
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span span.fw_avatar_stat { #egw_fw_topmenu_info_items #topmenu_info_user_avatar span span.fw_avatar_stat {
position: absolute; position: absolute;