diff options
Diffstat (limited to 'core/js/js.js')
-rw-r--r-- | core/js/js.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js index 3d5f489895d..d7975804f4b 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -702,6 +702,9 @@ var OCP = {}, $menuEl.parent().addClass('openedMenu'); } + // Set menu to expanded + $toggle.attr('aria-expanded', true); + $menuEl.slideToggle(OC.menuSpeed, toggle); OC._currentMenu = $menuEl; OC._currentMenuToggle = $toggle; @@ -736,6 +739,10 @@ var OCP = {}, } }); } + + // Set menu to closed + $('.menutoggle').attr('aria-expanded', false); + $('.openedMenu').removeClass('openedMenu'); OC._currentMenu = null; OC._currentMenuToggle = null; |