disable avatar loading on public guest page

remotes/origin/stable6
Jörn Friedrich Dreyer 11 years ago
parent 2e79aab0ce
commit 342a420eba
  1. 8
      core/js/avatar.js

@ -1,7 +1,9 @@
$(document).ready(function(){
$('#header .avatardiv').avatar(OC.currentUser, 32);
// Personal settings
$('#avatar .avatardiv').avatar(OC.currentUser, 128);
if (OC.currentUser) {
$('#header .avatardiv').avatar(OC.currentUser, 32);
// Personal settings
$('#avatar .avatardiv').avatar(OC.currentUser, 128);
}
// User settings
$.each($('td.avatar .avatardiv'), function(i, element) {
$(element).avatar($(element).parent().parent().data('uid'), 32);

Loading…
Cancel
Save