change all instances of .avatar on new image upload

This commit is contained in:
Julian Lam
2016-01-19 11:18:02 -05:00
parent f18382a892
commit 5a92b1a5cf

View File

@@ -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;
}