Skip to content

Node.js based forum software built for the modern web

uploading picture didn't update profile image until refreshed - fixed

psychobunnyddcf46fc73da
diff --git a/public/src/forum/accountedit.js b/public/src/forum/accountedit.js
index 5e4eb0fcc3..33a942e3e2 100644
--- a/public/src/forum/accountedit.js
+++ b/public/src/forum/accountedit.js
@@ -85,6 +85,8 @@ define(['forum/accountheader', 'uploader'], function(header, uploader) {
$('#change-picture-modal').modal('hide');
uploader.open(config.relative_path + '/user/uploadpicture', function(imageUrlOnServer) {
+ imageUrlOnServer = imageUrlOnServer + '?' + new Date().getTime();
+
$('#user-current-picture').attr('src', imageUrlOnServer);
$('#user-uploaded-picture').attr('src', imageUrlOnServer);