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') {
|
if (getCookie('BetterNavigator') === 'open') {
|
||||||
BetterNavigator.className = 'open';
|
BetterNavigator.className = 'open';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Upgrade logout link to directly log users out instead of redirecting to logout form
|
if (BetterNavigatorLogoutForm) {
|
||||||
BetterNavigatorLogoutLink.onclick = function (e) {
|
// Upgrade logout link to directly log users out instead of redirecting to logout form
|
||||||
e.preventDefault();
|
BetterNavigatorLogoutLink.onclick = function (e) {
|
||||||
BetterNavigatorLogoutForm.submit();
|
e.preventDefault();
|
||||||
};
|
BetterNavigatorLogoutForm.submit();
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (document.addEventListener && document.readyState === 'loading') {
|
if (document.addEventListener && document.readyState === 'loading') {
|
||||||
|
Loading…
Reference in New Issue
Block a user