Skip to content

Commit

Permalink
Merge pull request #2 from ybmirz/main
Browse files Browse the repository at this point in the history
Implemented user selection role in header menu
  • Loading branch information
hugoatjoget authored Sep 11, 2023
2 parents 654111b + 4146a99 commit d3c65ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/resources/templates/UserRoleSelection.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<script>
$(function(){
$("ul.user-menu").find("ul").append( $("#userRoleSelections li") );
if ($('body')[0].classList.contains('horizontal_menu')) {
$("ul.dropdown-menu").append( $("#userRoleSelections li") );
} else {
$("ul.user-menu").find("ul").append( $("#userRoleSelections li") );
}
});
</script>

Expand Down

0 comments on commit d3c65ae

Please sign in to comment.