diff options
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/personal.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index e97d0d64c92..5d9219dd7e5 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -74,10 +74,11 @@ function showAvatarCropper() { onSelect: saveCoords, aspectRatio: 1 }); - }).attr('src', OC.router_base_url+'/avatar/tmp/512'); + }).attr('src', OC.router_base_url+'/avatartmp/512'); } function sendCropData() { + $('#cropperbox').ocdialog('close'); var cropperdata = $('#cropper').data(); var data = { x: cropperdata.x, @@ -85,7 +86,7 @@ function sendCropData() { w: cropperdata.w, h: cropperdata.h }; - $.post(OC.router_base_url+'/avatar/', {crop: data}, avatarResponseHandler); + $.post(OC.router_base_url+'/avatar/cropped', {crop: data}, avatarResponseHandler); } function saveCoords(c) { |