diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-17 13:46:25 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-17 13:55:22 +0100 |
commit | a81836a42fa1b35b07cb7aad2a86d5057a61b27b (patch) | |
tree | 80c5e18388f832888cec371f512cbf7529f84d52 /core/js | |
parent | 21bd19b6ae788b5e91ae654b3f1fc6a04612fd01 (diff) | |
download | nextcloud-server-a81836a42fa1b35b07cb7aad2a86d5057a61b27b.tar.gz nextcloud-server-a81836a42fa1b35b07cb7aad2a86d5057a61b27b.zip |
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 'core/js')
-rw-r--r-- | core/js/avatar.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/js/avatar.js b/core/js/avatar.js index 8ff136d67ca..10214c35fbe 100644 --- a/core/js/avatar.js +++ b/core/js/avatar.js @@ -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) { |