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"))
{
$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);
$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(
'account_id' => $GLOBALS['egw_info']['user']['account_id'],
)).'"/>'.(!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;
margin-top: 2px;
margin-left: 1px;
pointer-events: none;
}
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span img {
width: 40px;
pointer-events: none;
}
#egw_fw_topmenu_info_items #topmenu_info_user_avatar span span.fw_avatar_stat {
position: absolute;

View File

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

View File

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

View File

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

View File

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