diff options
Diffstat (limited to 'settings/js/personal.js')
-rw-r--r-- | settings/js/personal.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index 9f4a4f377b3..213af93a0fe 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -130,8 +130,8 @@ function updateAvatar (hidedefault) { function showAvatarCropper () { var $cropper = $('#cropper'); var $cropperImage = $('<img/>'); - $cropperImage.css('opacity', 0); - $cropper.prepend($cropperImage); + $cropperImage.css('opacity', 0); // prevent showing the unresized image + $cropper.children('.inner-container').prepend($cropperImage); $cropperImage.attr('src', OC.generateUrl('/avatar/tmp') + '?requesttoken=' + encodeURIComponent(oc_requesttoken) + '#' + Math.floor(Math.random() * 1000)); @@ -148,8 +148,6 @@ function showAvatarCropper () { boxHeight: 500, boxWidth: 500, setSelect: [0, 0, 300, 300] - }, function() { - $cropperImage.css('opacity', 1); }); }); } |