diff options
author | Robin Appelman <robin@icewind.nl> | 2016-10-20 16:25:11 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-10-20 16:25:11 +0200 |
commit | 154fbe06ce643a727f43ca0c980eaa190a4c919a (patch) | |
tree | bf646deed8f07f6e5ba7c90b2e4ff243ec866dbb /settings/js | |
parent | 9983b5533a689845d24013d601bf717dd4a302aa (diff) | |
download | nextcloud-server-154fbe06ce643a727f43ca0c980eaa190a4c919a.tar.gz nextcloud-server-154fbe06ce643a727f43ca0c980eaa190a4c919a.zip |
only show cropper dialog when the cropper is ready
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/personal.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index 213af93a0fe..e75f6b9e0f3 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -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(); }); }); } |