|
|
@ -214,12 +214,14 @@ define([
|
|
|
|
var newName = myData.name;
|
|
|
|
var newName = myData.name;
|
|
|
|
var url = myData.avatar;
|
|
|
|
var url = myData.avatar;
|
|
|
|
$displayName.text(newName || Messages.anonymous);
|
|
|
|
$displayName.text(newName || Messages.anonymous);
|
|
|
|
$avatar.html('');
|
|
|
|
if (accountName) {
|
|
|
|
UI.displayAvatar(Common, $avatar, url, newName, function ($img) {
|
|
|
|
$avatar.html('');
|
|
|
|
if ($img) {
|
|
|
|
UI.displayAvatar(Common, $avatar, url, newName, function ($img) {
|
|
|
|
$userAdmin.find('button').addClass('avatar');
|
|
|
|
if ($img) {
|
|
|
|
}
|
|
|
|
$userAdmin.find('button').addClass('avatar');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
metadataMgr.onChange(updateButton);
|
|
|
|
metadataMgr.onChange(updateButton);
|
|
|
|
updateButton();
|
|
|
|
updateButton();
|
|
|
|