summaryrefslogtreecommitdiffstats
path: root/core/js/avatar.js
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-09-17 19:25:03 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-09-17 19:25:03 +0200
commit342a420ebada080f7575003c2e1937757b0df341 (patch)
treedbc4e47602d6bff6c11c8156e101ea6265e5e0df /core/js/avatar.js
parent2e79aab0ce7ec9fa88ccbafd01e82574b93514f9 (diff)
downloadnextcloud-server-342a420ebada080f7575003c2e1937757b0df341.tar.gz
nextcloud-server-342a420ebada080f7575003c2e1937757b0df341.zip
disable avatar loading on public guest page
Diffstat (limited to 'core/js/avatar.js')
-rw-r--r--core/js/avatar.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/js/avatar.js b/core/js/avatar.js
index 410182f01bf..57e6daa0930 100644
--- a/core/js/avatar.js
+++ b/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);