summaryrefslogtreecommitdiffstats
path: root/settings/js/personal.js
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-08-02 08:03:51 +0200
committerkondou <kondou@ts.unde.re>2013-08-25 21:04:45 +0200
commit252548c62cf099e5186ffc323e3cf9494fae3768 (patch)
tree9336f2a84a7059e98385e13080485d43fe46f461 /settings/js/personal.js
parenta58d270684110334aab1b296b69e98def6cc6558 (diff)
downloadnextcloud-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.js8
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");
});