summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-09-04 13:16:21 +0200
committerkondou <kondou@ts.unde.re>2013-09-04 13:16:21 +0200
commitfca5db748be0f0f6614f95721479ad57b521efb3 (patch)
tree3c9c10e67fd2f1e9c64a2a5d9f38406d375f1564 /settings
parent820fd42161a6f61a7ba3252793558f88bc155355 (diff)
downloadnextcloud-server-fca5db748be0f0f6614f95721479ad57b521efb3.tar.gz
nextcloud-server-fca5db748be0f0f6614f95721479ad57b521efb3.zip
Remove backgroundcolor on updating avatar, and add a missing parameter
Diffstat (limited to 'settings')
-rw-r--r--settings/js/personal.js11
1 files changed, 8 insertions, 3 deletions
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,