From 154fbe06ce643a727f43ca0c980eaa190a4c919a Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 20 Oct 2016 16:25:11 +0200 Subject: only show cropper dialog when the cropper is ready Signed-off-by: Robin Appelman --- settings/js/personal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'settings/js') 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(); }); }); } -- cgit v1.2.3