change all instances of .avatar on new image upload

v1.18.x
Julian Lam 9 years ago
parent f18382a892
commit 5a92b1a5cf

@ -186,7 +186,7 @@ define('forum/account/edit', ['forum/account/header', 'uploader', 'translator'],
function onUploadComplete(urlOnServer) {
urlOnServer = urlOnServer + '?' + new Date().getTime();
$('#user-current-picture').attr('src', urlOnServer);
$('#user-current-picture, img.avatar').attr('src', urlOnServer);
updateHeader(urlOnServer);
uploadedPicture = urlOnServer;
}

Loading…
Cancel
Save