diff options
author | kondou <kondou@ts.unde.re> | 2013-08-28 16:39:00 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-08-28 16:39:00 +0200 |
commit | 8d8a57de7fb41030ffb69f098419616f4003119a (patch) | |
tree | 7027a8c0f0f05b9b00eac204f82d941bc610acc6 /settings | |
parent | 1b456831680b8868108afb7ebddce7095943f61c (diff) | |
download | nextcloud-server-8d8a57de7fb41030ffb69f098419616f4003119a.tar.gz nextcloud-server-8d8a57de7fb41030ffb69f098419616f4003119a.zip |
Continue work on cropper
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) { |