|
|
@ -1582,8 +1582,7 @@ define([
|
|
|
|
//var $userbig = $('<span>', {'class': 'big'}).append($displayedName.clone());
|
|
|
|
//var $userbig = $('<span>', {'class': 'big'}).append($displayedName.clone());
|
|
|
|
var $userButton = $('<div>').append($icon);//.append($userbig);
|
|
|
|
var $userButton = $('<div>').append($icon);//.append($userbig);
|
|
|
|
if (account) {
|
|
|
|
if (account) {
|
|
|
|
|
|
|
|
$userButton = $('<div>');//.append(accountName.slice(0,1).toUpperCase());
|
|
|
|
$userButton = $('<div>').append(accountName.slice(0,1).toUpperCase());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/*if (account && config.displayNameCls) {
|
|
|
|
/*if (account && config.displayNameCls) {
|
|
|
|
$userbig.append($('<span>', {'class': 'account-name'}).text('(' + accountName + ')'));
|
|
|
|
$userbig.append($('<span>', {'class': 'account-name'}).text('(' + accountName + ')'));
|
|
|
@ -1600,6 +1599,13 @@ define([
|
|
|
|
};
|
|
|
|
};
|
|
|
|
var $userAdmin = createDropdown(dropdownConfigUser);
|
|
|
|
var $userAdmin = createDropdown(dropdownConfigUser);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (account) {
|
|
|
|
|
|
|
|
var $avatar = $userAdmin.find('.buttonTitle');
|
|
|
|
|
|
|
|
var url = getStore() ? getStore().getProfile().avatar : undefined;
|
|
|
|
|
|
|
|
$avatar.html('');
|
|
|
|
|
|
|
|
common.displayAvatar($avatar, url, accountName, function ($img) {});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$userAdmin.find('a.logout').click(function () {
|
|
|
|
$userAdmin.find('a.logout').click(function () {
|
|
|
|
common.logout();
|
|
|
|
common.logout();
|
|
|
|
window.location.href = '/';
|
|
|
|
window.location.href = '/';
|
|
|
|