Skip to content
Snippets Groups Projects
Commit fca5db74 authored by Christopher Schäpers's avatar Christopher Schäpers
Browse files

Remove backgroundcolor on updating avatar, and add a missing parameter

parent 820fd421
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment