Remove backgroundcolor on updating avatar, and add a missing parameter
This commit is contained in:
parent
820fd42161
commit
fca5db748b
1 changed files with 8 additions and 3 deletions
|
@ -45,8 +45,13 @@ function changeDisplayName(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateAvatar () {
|
function updateAvatar () {
|
||||||
$('#header .avatardiv').avatar(OC.currentUser, 32, true);
|
$headerdiv = $('#header .avatardiv');
|
||||||
$('#displayavatar .avatardiv').avatar(OC.currentUser, 128, true);
|
$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() {
|
function showAvatarCropper() {
|
||||||
|
@ -204,7 +209,7 @@ $(document).ready(function(){
|
||||||
$('#selectavatar').click(function(){
|
$('#selectavatar').click(function(){
|
||||||
OC.dialogs.filepicker(
|
OC.dialogs.filepicker(
|
||||||
t('settings', "Select a profile picture"),
|
t('settings', "Select a profile picture"),
|
||||||
function(){
|
function(path){
|
||||||
$.post(OC.Router.generate('core_avatar_post'), {path: path}, avatarResponseHandler);
|
$.post(OC.Router.generate('core_avatar_post'), {path: path}, avatarResponseHandler);
|
||||||
},
|
},
|
||||||
false,
|
false,
|
||||||
|
|
Loading…
Reference in a new issue