diff options
author | kondou <kondou@ts.unde.re> | 2013-09-01 19:12:54 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-09-01 19:12:54 +0200 |
commit | c95d4cafa90ab1775cae1fd5d70f098005f8b134 (patch) | |
tree | cf9d3728298f01b1c9327981a638e9c3d2acb1b4 /settings | |
parent | 76b1b5b6a31f8241a369f45da4de99a6dd71e2eb (diff) | |
download | nextcloud-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')
-rw-r--r-- | settings/js/personal.js | 8 |
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(); + } }); }); } |