From 6e714a53445050e150321be899b1fc25f360ca98 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 26 Aug 2015 16:25:05 -0400 Subject: [PATCH] Revert "header/userpicture, header/profilelink, header/username components" This reverts commit d1effa65d09a272022ee4f9baf1c1d1b521a326c. --- public/src/client/account/edit.js | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/public/src/client/account/edit.js b/public/src/client/account/edit.js index eb651ca677..f7896baa90 100644 --- a/public/src/client/account/edit.js +++ b/public/src/client/account/edit.js @@ -87,20 +87,18 @@ define('forum/account/edit', ['forum/account/header', 'uploader', 'translator'], } function updateHeader(picture, username, userslug) { - require(['components'], function(components) { - if (parseInt(ajaxify.data.theirid, 10) !== parseInt(ajaxify.data.yourid, 10)) { - return; - } + if (parseInt(ajaxify.data.theirid, 10) !== parseInt(ajaxify.data.yourid, 10)) { + return; + } - if (picture) { - components.get('header/userpicture').attr('src', picture); - } + if (picture) { + $('#user-header-picture').attr('src', picture); + } - if (username && userslug) { - components.get('header/profilelink').attr('href', config.relative_path + '/user/' + userslug); - components.get('header/username').text(username); - } - }); + if (username && userslug) { + $('#user-profile-link').attr('href', config.relative_path + '/user/' + userslug); + $('#user-header-name').text(username); + } } function handleImageChange() {