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

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@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

Reviewed and Tested by Yu Xin Huo. On 6/17/2014 3:05 AM, Crístian Viana wrote:
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@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', '')";
participants (3)
-
Aline Manera
-
Crístian Viana
-
Yu Xin Huo