diff --git a/assets/js/components/menuBar/authenticated.js b/assets/js/components/menuBar/authenticated.js index 56be577e..d7a9f315 100644 --- a/assets/js/components/menuBar/authenticated.js +++ b/assets/js/components/menuBar/authenticated.js @@ -51,6 +51,6 @@ ComunicWeb.components.menuBar.authenticated = { var logoutButton = createElem("li", dropdownContent); var logoutButtonLink = createElem("a", logoutButton); logoutButtonLink.innerHTML = "Logout"; - logoutButton.onclick + logoutButton.onclick = function(){openPage("logout")}; } }; \ No newline at end of file