Revert "header/userpicture, header/profilelink, header/username components"

This reverts commit d1effa65d0.
v1.18.x
psychobunny 10 years ago
parent d1effa65d0
commit 6e714a5344

@ -87,20 +87,18 @@ define('forum/account/edit', ['forum/account/header', 'uploader', 'translator'],
} }
function updateHeader(picture, username, userslug) { function updateHeader(picture, username, userslug) {
require(['components'], function(components) { if (parseInt(ajaxify.data.theirid, 10) !== parseInt(ajaxify.data.yourid, 10)) {
if (parseInt(ajaxify.data.theirid, 10) !== parseInt(ajaxify.data.yourid, 10)) { return;
return; }
}
if (picture) { if (picture) {
components.get('header/userpicture').attr('src', picture); $('#user-header-picture').attr('src', picture);
} }
if (username && userslug) { if (username && userslug) {
components.get('header/profilelink').attr('href', config.relative_path + '/user/' + userslug); $('#user-profile-link').attr('href', config.relative_path + '/user/' + userslug);
components.get('header/username').text(username); $('#user-header-name').text(username);
} }
});
} }
function handleImageChange() { function handleImageChange() {

Loading…
Cancel
Save