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

This commit is contained in:
psychobunny
2013-12-08 11:30:29 -05:00
parent 7db234f958
commit ddcf46fc73

View File

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