diff options
author | kondou <kondou@ts.unde.re> | 2013-08-29 14:26:11 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-08-29 14:26:11 +0200 |
commit | 0c708be76bd7c7449779ef12e48e99d9c2cd3d82 (patch) | |
tree | e58bdf611bb96f3f73d469d9a65179dbc1f1838e /core/js/avatar.js | |
parent | e66113f50d9e39e3e370be0e714669f2917f9ccf (diff) | |
download | nextcloud-server-0c708be76bd7c7449779ef12e48e99d9c2cd3d82.tar.gz nextcloud-server-0c708be76bd7c7449779ef12e48e99d9c2cd3d82.zip |
Use defaultavatars
Diffstat (limited to 'core/js/avatar.js')
-rw-r--r-- | core/js/avatar.js | 10 |
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 +}); |