Skip to content
Snippets Groups Projects
Commit 0cfa3d87 authored by lbrun's avatar lbrun
Browse files

hotline #27654 fix the lay out of the menu when 2 menu's inputs point on the same profil

parent 0a507ea0
Branches
Tags
2 merge requests!1120Master,!1115Hotline#27654 menu qui se replie
- ticket #27654 : Correction du dépliage du menu lorsque deux entrées de menu pointent sur le même profil
\ No newline at end of file
......@@ -55,10 +55,10 @@ function menu_execute_display() {
var maxRight = wrapper.offset().left + wrapper.width();
var offset = menuList.offset()
var actualRight = offset.left + menuList.width();
if (actualRight > maxRight) {
var shift = actualRight - maxRight + 20;
menuList.offset({'top':offset.top,
menuList.offset({'top':offset.top,
'left':offset.left-shift});
}
}
......@@ -95,7 +95,7 @@ function menu_vertical_open(anchor) {
if(0 == a.length)
return false;
afficher_sous_menu(a);
}
......@@ -103,9 +103,7 @@ function menu_vertical_open(anchor) {
function menu_vertical_open_action() {
var selected_action = $('.menu_vertical .selected_action');
if(0 == selected_action.length)
return menu_vertical_open_with_profil();
menu_vertical_open_with_profil();
menu_vertical_open(selected_action);
}
......@@ -115,7 +113,7 @@ function menu_vertical_open_with_profil() {
if(0 == selected_profil.length)
return false;
menu_vertical_open(selected_profil);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment