mirror of
https://github.com/jonom/silverstripe-betternavigator.git
synced 2024-10-22 14:05:51 +02:00
parent
bfa6a310b6
commit
39d1aed274
@ -32,12 +32,14 @@ function initialiseBetterNavigator() {
|
||||
if (getCookie('BetterNavigator') === 'open') {
|
||||
BetterNavigator.className = 'open';
|
||||
}
|
||||
|
||||
// Upgrade logout link to directly log users out instead of redirecting to logout form
|
||||
BetterNavigatorLogoutLink.onclick = function (e) {
|
||||
e.preventDefault();
|
||||
BetterNavigatorLogoutForm.submit();
|
||||
};
|
||||
|
||||
if (BetterNavigatorLogoutForm) {
|
||||
// Upgrade logout link to directly log users out instead of redirecting to logout form
|
||||
BetterNavigatorLogoutLink.onclick = function (e) {
|
||||
e.preventDefault();
|
||||
BetterNavigatorLogoutForm.submit();
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
if (document.addEventListener && document.readyState === 'loading') {
|
||||
|
Loading…
Reference in New Issue
Block a user