aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2014-03-15 15:27:48 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-10-23 23:17:18 +0200
commit729dffed5ec924492962a41b4697ca05ad40da79 (patch)
treeac9cf4391a14953c03cab1564a2ff1e4c0e0cd6a /core/js
parente26a16afea14df7428dd614906fc94521538dfe3 (diff)
downloadnextcloud-server-729dffed5ec924492962a41b4697ca05ad40da79.tar.gz
nextcloud-server-729dffed5ec924492962a41b4697ca05ad40da79.zip
Load avatar in header via PHP
* fix #7484 * use UID, css, and div instead of span
Diffstat (limited to 'core/js')
-rw-r--r--core/js/avatar.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/js/avatar.js b/core/js/avatar.js
index 6835f6ef0ac..8ff136d67ca 100644
--- a/core/js/avatar.js
+++ b/core/js/avatar.js
@@ -1,15 +1,5 @@
$(document).ready(function(){
if (OC.currentUser) {
- var callback = function() {
- // do not show display name on mobile when profile picture is present
- if($('#header .avatardiv').children().length > 0) {
- $('#header .avatardiv').addClass('avatardiv-shown');
- }
- };
-
- $('#header .avatardiv').avatar(
- OC.currentUser, 32, undefined, true, callback
- );
// Personal settings
$('#avatar .avatardiv').avatar(OC.currentUser, 128);
}