From ddcf46fc73daf06ba8f0096c8f9602fd61ed32c2 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Sun, 8 Dec 2013 11:30:29 -0500 Subject: [PATCH] uploading picture didn't update profile image until refreshed - fixed --- public/src/forum/accountedit.js | 2 ++ 1 file changed, 2 insertions(+) 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);