v1.18.x
Barış Soner Uşaklı 8 years ago
parent 43aab9b5f1
commit 8f5f5eb56a

@ -65,7 +65,7 @@
"nodebb-plugin-spam-be-gone": "0.5.0",
"nodebb-rewards-essentials": "0.0.9",
"nodebb-theme-lavender": "4.0.1",
"nodebb-theme-persona": "5.0.7",
"nodebb-theme-persona": "5.0.8",
"nodebb-theme-slick": "1.1.0",
"nodebb-theme-vanilla": "6.0.6",
"nodebb-widget-essentials": "3.0.0",

@ -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']);
}

Loading…
Cancel
Save