|
|
|
@ -33,6 +33,8 @@ define('forum/account/edit/username', ['forum/account/header'], function (header
|
|
|
|
|
var userslug = utils.slugify(userData.username);
|
|
|
|
|
if (userData.username && userslug && parseInt(userData.uid, 10) === parseInt(app.user.uid, 10)) {
|
|
|
|
|
$('[component="header/profilelink"]').attr('href', config.relative_path + '/user/' + userslug);
|
|
|
|
|
$('[component="header/profilelink/edit"]').attr('href', config.relative_path + '/user/' + userslug + '/edit');
|
|
|
|
|
$('[component="header/profilelink/settings"]').attr('href', config.relative_path + '/user/' + userslug + '/settings');
|
|
|
|
|
$('[component="header/username"]').text(userData.username);
|
|
|
|
|
$('[component="header/usericon"]').css('background-color', data['icon:bgColor']).text(data['icon:text']);
|
|
|
|
|
}
|
|
|
|
|