Fixed admin submenus not working correctly when more than one registered

pull/869/head
Timo Rieber 2014-12-04 23:20:29 +01:00
rodzic 0dd0044dc8
commit c6f126c8d2
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -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