diff options
author | kondou <kondou@ts.unde.re> | 2013-10-04 02:27:53 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-10-04 02:27:53 +0200 |
commit | b0ff10a5365ebaec2741c8095493c0eff836c439 (patch) | |
tree | 5dfb3ad111f267dfc7245c21f454d8b54834599c /settings | |
parent | de175a4b0f0971c9cbbf912bbc3fd8cbc190b53d (diff) | |
download | nextcloud-server-b0ff10a5365ebaec2741c8095493c0eff836c439.tar.gz nextcloud-server-b0ff10a5365ebaec2741c8095493c0eff836c439.zip |
Hide defaultavatar in #header and don't darken proper avatars in #header
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/personal.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index a923b475731..3fdc2907c46 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -45,12 +45,16 @@ function changeDisplayName(){ } } -function updateAvatar () { +function updateAvatar (hidedefault) { $headerdiv = $('#header .avatardiv'); $displaydiv = $('#displayavatar .avatardiv'); - $headerdiv.css({'background-color': ''}); - $headerdiv.avatar(OC.currentUser, 32, true); + if(hidedefault) { + $headerdiv.hide(); + } else { + $headerdiv.css({'background-color': ''}); + $headerdiv.avatar(OC.currentUser, 32, true); + } $displaydiv.css({'background-color': ''}); $displaydiv.avatar(OC.currentUser, 128, true); } @@ -232,7 +236,7 @@ $(document).ready(function(){ type: 'DELETE', url: OC.Router.generate('core_avatar_delete'), success: function(msg) { - updateAvatar(); + updateAvatar(true); } }); }); |