Merge pull request #11238 from hregis/develop_look
FIX missing "dropdown-icon" replacement
This commit is contained in:
commit
d76a4f1011
@ -1720,7 +1720,7 @@ function top_menu_user(User $user, Translate $langs)
|
|||||||
$userImage = Form::showphoto('userphoto', $user, 0, 0, 0, 'photouserphoto userphoto', 'small', 0, 1);
|
$userImage = Form::showphoto('userphoto', $user, 0, 0, 0, 'photouserphoto userphoto', 'small', 0, 1);
|
||||||
$userDropDownImage = Form::showphoto('userphoto', $user, 0, 0, 0, 'dropdown-user-image', 'small', 0, 1);
|
$userDropDownImage = Form::showphoto('userphoto', $user, 0, 0, 0, 'dropdown-user-image', 'small', 0, 1);
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
$nophoto='/public/theme/common/user_anonymous.png';
|
$nophoto='/public/theme/common/user_anonymous.png';
|
||||||
if ($user->gender == 'man') $nophoto='/public/theme/common/user_man.png';
|
if ($user->gender == 'man') $nophoto='/public/theme/common/user_man.png';
|
||||||
if ($user->gender == 'woman') $nophoto='/public/theme/common/user_woman.png';
|
if ($user->gender == 'woman') $nophoto='/public/theme/common/user_woman.png';
|
||||||
@ -1734,7 +1734,7 @@ function top_menu_user(User $user, Translate $langs)
|
|||||||
$dropdownBody.= '<div id="topmenuloginmoreinfo" >';
|
$dropdownBody.= '<div id="topmenuloginmoreinfo" >';
|
||||||
|
|
||||||
// login infos
|
// login infos
|
||||||
if (!empty($user->admin)) {
|
if (! empty($user->admin)) {
|
||||||
$dropdownBody.= '<br><b>' . $langs->trans("Administrator").'</b>: '.yn($user->admin);
|
$dropdownBody.= '<br><b>' . $langs->trans("Administrator").'</b>: '.yn($user->admin);
|
||||||
}
|
}
|
||||||
if (! empty($user->socid)) // Add thirdparty for external users
|
if (! empty($user->socid)) // Add thirdparty for external users
|
||||||
@ -1787,7 +1787,7 @@ function top_menu_user(User $user, Translate $langs)
|
|||||||
|
|
||||||
$profilName = $user->getFullName($langs).' ('.$user->login.')';
|
$profilName = $user->getFullName($langs).' ('.$user->login.')';
|
||||||
|
|
||||||
if($user->admin){
|
if (! empty($user->admin)) {
|
||||||
$profilName = '<i class="far fa-star classfortooltip" title="'.$langs->trans("Administrator").'" ></i> '.$profilName;
|
$profilName = '<i class="far fa-star classfortooltip" title="'.$langs->trans("Administrator").'" ></i> '.$profilName;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1847,6 +1847,8 @@ function top_menu_user(User $user, Translate $langs)
|
|||||||
if (!$(event.target).closest("#topmenu-login-dropdown").length) {
|
if (!$(event.target).closest("#topmenu-login-dropdown").length) {
|
||||||
// Hide the menus.
|
// Hide the menus.
|
||||||
$("#topmenu-login-dropdown").removeClass("open");
|
$("#topmenu-login-dropdown").removeClass("open");
|
||||||
|
$("#dropdown-icon-down").show(); // use show/hide instead toggle for avoid conflict
|
||||||
|
$("#dropdown-icon-up").hide(); // use show/hide instead toggle for avoid conflict
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user