kopia lustrzana https://github.com/wagtail/wagtail
Fixed admin submenus not working correctly when more than one registered
rodzic
0dd0044dc8
commit
c6f126c8d2
|
@ -9,6 +9,11 @@ $(function(){
|
|||
$explorer.dlmenu('closeMenu');
|
||||
}
|
||||
|
||||
// Close other active submenus first, if any
|
||||
if($('.nav-wrapper.submenu-active').length){
|
||||
$('.nav-main .submenu-active, .nav-wrapper').removeClass('submenu-active');
|
||||
}
|
||||
|
||||
$(this).closest('li').toggleClass('submenu-active');
|
||||
$('.nav-wrapper').toggleClass('submenu-active');
|
||||
return false
|
||||
|
|
Ładowanie…
Reference in New Issue