summaryrefslogtreecommitdiffstats
path: root/core/js/avatar.js
diff options
context:
space:
mode:
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
+});