summaryrefslogtreecommitdiffstats
path: root/core/js/avatar.js
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-08-29 14:26:11 +0200
committerkondou <kondou@ts.unde.re>2013-08-29 14:26:11 +0200
commit0c708be76bd7c7449779ef12e48e99d9c2cd3d82 (patch)
treee58bdf611bb96f3f73d469d9a65179dbc1f1838e /core/js/avatar.js
parente66113f50d9e39e3e370be0e714669f2917f9ccf (diff)
downloadnextcloud-server-0c708be76bd7c7449779ef12e48e99d9c2cd3d82.tar.gz
nextcloud-server-0c708be76bd7c7449779ef12e48e99d9c2cd3d82.zip
Use defaultavatars
Diffstat (limited to 'core/js/avatar.js')
-rw-r--r--core/js/avatar.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/js/avatar.js b/core/js/avatar.js
new file mode 100644
index 00000000000..22ebf295999
--- /dev/null
+++ b/core/js/avatar.js
@@ -0,0 +1,10 @@
+$(document).ready(function(){
+ $('header .avatardiv').avatar(OC.currentUser, 32);
+ // Personal settings
+ $('#avatar .avatardiv').avatar(OC.currentUser, 128);
+ // User settings
+ $.each($('td.avatar .avatardiv'), function(i, data) {
+ $(data).avatar($(data).parent().parent().data('uid'), 32); // TODO maybe a better way of getting the current name …
+ });
+ // TODO when creating a new user, he gets a previously used avatar
+});