Commit a81836a4 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Only load the big (128x128) avatar on the perosnal page

Before the code was executed on every page if a user was logged in. Now
only on the personal page. Thus saving a request on all other pages.
parent 21bd19b6
$(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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment