aboutsummaryrefslogtreecommitdiffstats
path: root/settings/js/personal.js
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-09-01 19:12:54 +0200
committerkondou <kondou@ts.unde.re>2013-09-01 19:12:54 +0200
commitc95d4cafa90ab1775cae1fd5d70f098005f8b134 (patch)
treecf9d3728298f01b1c9327981a638e9c3d2acb1b4 /settings/js/personal.js
parent76b1b5b6a31f8241a369f45da4de99a6dd71e2eb (diff)
downloadnextcloud-server-c95d4cafa90ab1775cae1fd5d70f098005f8b134.tar.gz
nextcloud-server-c95d4cafa90ab1775cae1fd5d70f098005f8b134.zip
Fix @tanghus's complains in avatars and clean up cropper after closing with "x"
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();
+ }
});
});
}