summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2014-02-20 13:37:23 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2014-02-20 13:37:23 +0100
commit20b740f8e4674ab16f44127bc809a35b8db24910 (patch)
treecd0793b8d7f51efc0de3db6b242b79bdfe4ef585 /settings
parent92d57cb5a7de41e576c9cbd3fae70e9802561187 (diff)
downloadnextcloud-server-20b740f8e4674ab16f44127bc809a35b8db24910.tar.gz
nextcloud-server-20b740f8e4674ab16f44127bc809a35b8db24910.zip
do not show display name on mobile when profile picture is present
Diffstat (limited to 'settings')
-rw-r--r--settings/js/personal.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js
index ef261b50bbc..5944272067b 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -52,9 +52,11 @@ function updateAvatar (hidedefault) {
if(hidedefault) {
$headerdiv.hide();
+ $('#header .avatardiv').removeClass('avatardiv-shown');
} else {
$headerdiv.css({'background-color': ''});
$headerdiv.avatar(OC.currentUser, 32, true);
+ $('#header .avatardiv').addClass('avatardiv-shown');
}
$displaydiv.css({'background-color': ''});
$displaydiv.avatar(OC.currentUser, 128, true);