mirror of
https://github.com/nextcloud/server.git
synced 2026-03-02 13:31:14 -05:00
disable avatar loading on public guest page
This commit is contained in:
parent
2e79aab0ce
commit
342a420eba
1 changed files with 5 additions and 3 deletions
|
|
@ -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…
Reference in a new issue