diff --git a/module/my/js/profile.js b/module/my/js/profile.js index fa5783a6e8..e36ebbf5e6 100644 --- a/module/my/js/profile.js +++ b/module/my/js/profile.js @@ -19,3 +19,8 @@ $(document).ready(function() $('#files').click(); }); }); + +function uploadAvatar() +{ + $('#avatarUploadBtn').trigger('click'); +} diff --git a/module/my/view/profile.html.php b/module/my/view/profile.html.php index 368bb30d17..135d43d942 100644 --- a/module/my/view/profile.html.php +++ b/module/my/view/profile.html.php @@ -119,6 +119,7 @@
changePassword, '', "title={$lang->changePassword} class='btn'");?> user->editProfile, '', "title={$lang->user->editProfile} class='btn'");?> + my->uploadAvatar, '', "class='btn'");?>