FIX missing "dropdown-icon" replacement
This commit is contained in:
parent
512b832c77
commit
bfa7f22209
@ -1808,7 +1808,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1868,6 +1868,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