mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
uploading picture didn't update profile image until refreshed - fixed
This commit is contained in:
@@ -85,6 +85,8 @@ define(['forum/accountheader', 'uploader'], function(header, uploader) {
|
|||||||
|
|
||||||
$('#change-picture-modal').modal('hide');
|
$('#change-picture-modal').modal('hide');
|
||||||
uploader.open(config.relative_path + '/user/uploadpicture', function(imageUrlOnServer) {
|
uploader.open(config.relative_path + '/user/uploadpicture', function(imageUrlOnServer) {
|
||||||
|
imageUrlOnServer = imageUrlOnServer + '?' + new Date().getTime();
|
||||||
|
|
||||||
$('#user-current-picture').attr('src', imageUrlOnServer);
|
$('#user-current-picture').attr('src', imageUrlOnServer);
|
||||||
$('#user-uploaded-picture').attr('src', imageUrlOnServer);
|
$('#user-uploaded-picture').attr('src', imageUrlOnServer);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user