diff options
author | kondou <kondou@ts.unde.re> | 2013-08-29 16:56:32 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-08-29 16:56:32 +0200 |
commit | c533b8068292e2b265c3c73f3ad9e5de0e98a81d (patch) | |
tree | cc14a75014956c8ef13617b18a3894fca2c3f6fc /settings/js/personal.js | |
parent | 0c708be76bd7c7449779ef12e48e99d9c2cd3d82 (diff) | |
download | nextcloud-server-c533b8068292e2b265c3c73f3ad9e5de0e98a81d.tar.gz nextcloud-server-c533b8068292e2b265c3c73f3ad9e5de0e98a81d.zip |
Use OC_Cache and finish cropper functionality
Diffstat (limited to 'settings/js/personal.js')
-rw-r--r-- | settings/js/personal.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index 03f4fbc9da9..abb085fac06 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -72,9 +72,11 @@ function showAvatarCropper() { $(this).Jcrop({ onChange: saveCoords, onSelect: saveCoords, - aspectRatio: 1 + aspectRatio: 1, + boxHeight: 500, + boxWidth: 500 }); - }).attr('src', OC.Router.generate('core_avatar_get_tmp', {size: 512})); + }).attr('src', OC.Router.generate('core_avatar_get_tmp')); } function sendCropData() { @@ -190,11 +192,6 @@ $(document).ready(function(){ } }); - $('#uploadavatar').click(function(){ - alert('To be done'); - updateAvatar(); - }); - var uploadparms = { done: function(e, data) { avatarResponseHandler(data.result); |