diff --git a/module/my/js/profile.js b/module/my/js/profile.js
index e36ebbf5e6..b5ec8a420b 100644
--- a/module/my/js/profile.js
+++ b/module/my/js/profile.js
@@ -3,21 +3,25 @@ $(document).ready(function()
$('#files').change(function(){$('#avatarForm').submit();});
$.setAjaxForm('#avatarForm', function(response)
- {
+ {
if(response.result == 'success')
- {
+ {
setTimeout(function()
- {
+ {
$('#avatarUploadBtn').popover('destroy');
$('#ajaxModal').load(response.locate);
}, 800);
- }
- });
+ }
+ });
$('#avatarUploadBtn').on('click', function()
- {
+ {
$('#files').click();
});
+
+ window.parent.$('#main-avatar, #menu-avatar').html('');
+ window.parent.$('#mainContent>.cell>.main-header>.avatar').html('
');
+ window.parent.$('#mainContent .avatar-' + account).html('
');
});
function uploadAvatar()
diff --git a/module/my/view/profile.html.php b/module/my/view/profile.html.php
index 4807c5c7de..e4c3e8a5c7 100644
--- a/module/my/view/profile.html.php
+++ b/module/my/view/profile.html.php
@@ -11,6 +11,8 @@
*/
?>
+app->user->avatar);?>
+app->user->account);?>