[Kimchi-devel] [PATCH] Bug fix: Display the username on the header bar

Crístian Viana vianac at linux.vnet.ibm.com
Mon Jun 16 19:05:26 UTC 2014


The commit 85e3837 has introduced a bug where the username is not being
displayed on the header bar. Also, if the user hovers the mouse on the
drop down menu ("Help" - "About" - "Log out"), the element changes its
position by a few pixels.

Fix the bug mentioned above by setting the username to a browser cookie.

Signed-off-by: Crístian Viana <vianac at linux.vnet.ibm.com>
---
 ui/pages/login.html.tmpl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ui/pages/login.html.tmpl b/ui/pages/login.html.tmpl
index 94379b7..0fa7122 100644
--- a/ui/pages/login.html.tmpl
+++ b/ui/pages/login.html.tmpl
@@ -70,6 +70,7 @@ function setLang() {
 function updateBtnLabel() {
     document.getElementById("login").style.display = "none";
     document.getElementById("logging").style.display = "";
+    kimchi.user.setUserName(document.getElementById("username").value);
 }
 function setMessage() {
     var err = "$getVar('data.error', '')";
-- 
1.9.3




More information about the Kimchi-devel mailing list