From fca5db748be0f0f6614f95721479ad57b521efb3 Mon Sep 17 00:00:00 2001 From: kondou Date: Wed, 4 Sep 2013 13:16:21 +0200 Subject: Remove backgroundcolor on updating avatar, and add a missing parameter --- settings/js/personal.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'settings/js/personal.js') diff --git a/settings/js/personal.js b/settings/js/personal.js index 8e7a71e2597..61ce6274c4e 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -45,8 +45,13 @@ function changeDisplayName(){ } function updateAvatar () { - $('#header .avatardiv').avatar(OC.currentUser, 32, true); - $('#displayavatar .avatardiv').avatar(OC.currentUser, 128, true); + $headerdiv = $('#header .avatardiv'); + $displaydiv = $('#displayavatar .avatardiv'); + + $headerdiv.css({'background-color': ''}); + $headerdiv.avatar(OC.currentUser, 32, true); + $displaydiv.css({'background-color': ''}); + $displaydiv.avatar(OC.currentUser, 128, true); } function showAvatarCropper() { @@ -204,7 +209,7 @@ $(document).ready(function(){ $('#selectavatar').click(function(){ OC.dialogs.filepicker( t('settings', "Select a profile picture"), - function(){ + function(path){ $.post(OC.Router.generate('core_avatar_post'), {path: path}, avatarResponseHandler); }, false, -- cgit v1.2.3