Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-12-17 15:46:25 +0300
committerRoeland Jago Douma <rullzer@owncloud.com>2015-12-17 15:55:22 +0300
commita81836a42fa1b35b07cb7aad2a86d5057a61b27b (patch)
tree80c5e18388f832888cec371f512cbf7529f84d52 /settings/js
parent21bd19b6ae788b5e91ae654b3f1fc6a04612fd01 (diff)
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.
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/personal.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js
index 8362adac2a6..b90194b90ec 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -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) {