From 527763a1d8bfd651deb3c7feecdc75f2af818c51 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Thu, 28 Jan 2021 15:31:37 +0800 Subject: [PATCH] * Finish task #9097. --- module/my/js/profile.js | 5 +++++ module/my/view/profile.html.php | 1 + 2 files changed, 6 insertions(+) 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'");?>