From c533b8068292e2b265c3c73f3ad9e5de0e98a81d Mon Sep 17 00:00:00 2001 From: kondou Date: Thu, 29 Aug 2013 16:56:32 +0200 Subject: Use OC_Cache and finish cropper functionality --- settings/js/personal.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'settings/js/personal.js') 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); -- cgit v1.2.3