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