Merge pull request #21259 from owncloud/load_big_avatar_only_personal
Only load the big (128x128) avatar on the perosnal page
This commit is contained in:
commit
3bcaaa6c3a
|
@ -1,7 +1,6 @@
|
|||
$(document).ready(function(){
|
||||
if (OC.currentUser) {
|
||||
// Personal settings
|
||||
$('#avatar .avatardiv').avatar(OC.currentUser, 128);
|
||||
|
||||
}
|
||||
// User settings
|
||||
$.each($('td.avatar .avatardiv'), function(i, element) {
|
||||
|
|
|
@ -405,6 +405,11 @@ $(document).ready(function () {
|
|||
if ($('#sslCertificate > tbody > tr').length === 0) {
|
||||
$('#sslCertificate').hide();
|
||||
}
|
||||
|
||||
// Load the big avatar
|
||||
if (oc_config.enable_avatars) {
|
||||
$('#avatar .avatardiv').avatar(OC.currentUser, 128);
|
||||
}
|
||||
});
|
||||
|
||||
if (!OC.Encryption) {
|
||||
|
|
Loading…
Reference in New Issue