From b0849d4104e0184e826570252b3d95584f07ae17 Mon Sep 17 00:00:00 2001 From: Pierre Date: Thu, 25 May 2017 13:57:38 +0200 Subject: [PATCH] Made logout button live --- assets/js/components/menuBar/authenticated.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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