disable avatar loading on public guest page
This commit is contained in:
parent
2e79aab0ce
commit
342a420eba
|
@ -1,7 +1,9 @@
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('#header .avatardiv').avatar(OC.currentUser, 32);
|
if (OC.currentUser) {
|
||||||
// Personal settings
|
$('#header .avatardiv').avatar(OC.currentUser, 32);
|
||||||
$('#avatar .avatardiv').avatar(OC.currentUser, 128);
|
// Personal settings
|
||||||
|
$('#avatar .avatardiv').avatar(OC.currentUser, 128);
|
||||||
|
}
|
||||||
// User settings
|
// User settings
|
||||||
$.each($('td.avatar .avatardiv'), function(i, element) {
|
$.each($('td.avatar .avatardiv'), function(i, element) {
|
||||||
$(element).avatar($(element).parent().parent().data('uid'), 32);
|
$(element).avatar($(element).parent().parent().data('uid'), 32);
|
||||||
|
|
Loading…
Reference in New Issue