server/core/js/avatar.js
2013-08-29 14:26:11 +02:00

10 lines
428 B
JavaScript

$(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
});