summaryrefslogtreecommitdiffstats
path: root/settings/js/personal.js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js/personal.js')
-rw-r--r--settings/js/personal.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js
index e2e9c69e430..9823b2804bf 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -69,7 +69,8 @@ function showAvatarCropper() {
onSelect: saveCoords,
aspectRatio: 1,
boxHeight: 500,
- boxWidth: 500
+ boxWidth: 500,
+ setSelect: [0, 0, 300, 300]
});
$cropperbox.ocdialog({
@@ -77,7 +78,10 @@ function showAvatarCropper() {
text: t('settings', 'Crop'),
click: sendCropData,
defaultButton: true
- }]
+ }],
+ close: function(){
+ $(this).remove();
+ }
});
});
}