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

Yu Xin Huo huoyuxin at linux.vnet.ibm.com
Tue Jun 17 05:26:26 UTC 2014


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 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', '')";





More information about the Kimchi-devel mailing list