diff options
author | kondou <kondou@ts.unde.re> | 2013-08-02 08:03:51 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-08-25 21:04:45 +0200 |
commit | 252548c62cf099e5186ffc323e3cf9494fae3768 (patch) | |
tree | 9336f2a84a7059e98385e13080485d43fe46f461 /settings/js/personal.js | |
parent | a58d270684110334aab1b296b69e98def6cc6558 (diff) | |
download | nextcloud-server-252548c62cf099e5186ffc323e3cf9494fae3768.tar.gz nextcloud-server-252548c62cf099e5186ffc323e3cf9494fae3768.zip |
Improve styling & enable avatar-upload at personal page
Diffstat (limited to 'settings/js/personal.js')
-rw-r--r-- | settings/js/personal.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index fdaca07e98d..71b4785bbf2 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -144,6 +144,14 @@ $(document).ready(function(){ updateAvatar(); }); + var uploadparms = { + done: function(e) { + updateAvatar(); + } + }; + + $('#uploadavatar').fileupload(uploadparms); + $('#selectavatar').click(function(){ OC.dialogs.filepicker(t('settings', "Select an avatar"), selectAvatar, false, "image"); }); |