diff --git a/settings/js/personal.js b/settings/js/personal.js index dbc82758fd..9f4a4f377b 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -129,8 +129,9 @@ function updateAvatar (hidedefault) { function showAvatarCropper () { var $cropper = $('#cropper'); - $cropper.prepend(""); - var $cropperImage = $('#cropper img'); + var $cropperImage = $(''); + $cropperImage.css('opacity', 0); + $cropper.prepend($cropperImage); $cropperImage.attr('src', OC.generateUrl('/avatar/tmp') + '?requesttoken=' + encodeURIComponent(oc_requesttoken) + '#' + Math.floor(Math.random() * 1000)); @@ -147,6 +148,8 @@ function showAvatarCropper () { boxHeight: 500, boxWidth: 500, setSelect: [0, 0, 300, 300] + }, function() { + $cropperImage.css('opacity', 1); }); }); }