From d7e6c77e208f561f994ce7b9f2274fb30b75049f Mon Sep 17 00:00:00 2001 From: kondou Date: Thu, 15 Aug 2013 10:34:12 +0200 Subject: [PATCH] Have a fancy uploadavatar button --- settings/js/personal.js | 4 ++++ settings/templates/personal.php | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/settings/js/personal.js b/settings/js/personal.js index ae939aaa9e6..8336e9c8362 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -157,6 +157,10 @@ $(document).ready(function(){ } }; + $('#uploadavatarbutton').click(function(){ + $('#uploadavatar').click(); + }); + $('#uploadavatar').fileupload(uploadparms); $('#selectavatar').click(function(){ diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 348716ca02d..93aaa5ac1e7 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -90,7 +90,8 @@ if($_['passwordChangeSupported']) {
t('Your avatar has to be a square and either a PNG or JPG image')); ?>
- +
t('Upload a new avatar')); ?>
+
t('Select a new avatar from your files')); ?>
t('Remove my avatar')); ?>