Browse Source

User name is shown only after it has loaded

Enrico Berti 13 years ago
parent
commit
5452826fa1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      desktop/core/src/desktop/templates/common_header.mako

+ 2 - 1
desktop/core/src/desktop/templates/common_header.mako

@@ -57,6 +57,7 @@ from desktop.lib.i18n import smart_unicode
       $("#username").jHueUsername({
 		onLoad: function(user){
 			$(".userProfile").attr("href","/useradmin/users/edit/"+user.username);
+			$("#usernameDropdown").show();
 		}
 	  });
       $("input:text[placeholder]").simplePlaceholder();
@@ -87,7 +88,7 @@ from desktop.lib.i18n import smart_unicode
     <div class="navbar-inner">
       <div class="container-fluid">
         <a class="brand nav-tooltip" title="About Hue" href="/about">Hue</a>
-		<div class="btn-group pull-right">
+		<div id="usernameDropdown" class="btn-group pull-right hide">
           <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
             <i class="icon-user"></i> <span id="username"></span>
             <span class="caret"></span>