mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
only show cropper dialog when the cropper is ready
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
9983b5533a
commit
154fbe06ce
1 changed files with 2 additions and 1 deletions
|
|
@ -139,7 +139,6 @@ function showAvatarCropper () {
|
|||
// Looks weird, but on('load', ...) doesn't work in IE8
|
||||
$cropperImage.ready(function () {
|
||||
$('#displayavatar').hide();
|
||||
$cropper.show();
|
||||
|
||||
$cropperImage.Jcrop({
|
||||
onChange: saveCoords,
|
||||
|
|
@ -148,6 +147,8 @@ function showAvatarCropper () {
|
|||
boxHeight: 500,
|
||||
boxWidth: 500,
|
||||
setSelect: [0, 0, 300, 300]
|
||||
}, function() {
|
||||
$cropper.show();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue