diff options
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"); }); |