mirror of
https://github.com/jonom/silverstripe-betternavigator.git
synced 2024-10-22 14:05:51 +02:00
Fix issue with reloading the page when expanded
This commit is contained in:
parent
3947040551
commit
47f50f78df
@ -52,6 +52,11 @@ function initialiseBetterNavigator() {
|
||||
if (getCookie('BetterNavigator') === 'open') {
|
||||
BetterNavigator.classList.add('open');
|
||||
BetterNavigator.classList.remove('collapsed');
|
||||
|
||||
// update the button state
|
||||
BetterNavigatorStatusButton.setAttribute('aria-expanded', 'true');
|
||||
BetterNavigatorStatusIcon.classList.remove('bn-icon-cog');
|
||||
BetterNavigatorStatusIcon.classList.add('bn-icon-close');
|
||||
}
|
||||
|
||||
if (BetterNavigatorLogoutForm) {
|
||||
|
Loading…
Reference in New Issue
Block a user