From 00433c37e49e1ca706809a1a5f1c515cd784fc22 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 1 Oct 2011 20:28:07 -0400 Subject: Fixes #3888 correcting initialization of avatar cropping library --- views/default/forms/avatar/crop.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'views') diff --git a/views/default/forms/avatar/crop.php b/views/default/forms/avatar/crop.php index b97db939c..1f39ff73c 100644 --- a/views/default/forms/avatar/crop.php +++ b/views/default/forms/avatar/crop.php @@ -62,9 +62,12 @@ echo elgg_view('input/submit', array('value' => elgg_echo('avatar:create'))); $('
').insertAfter($('#user-avatar')); $('
').insertBefore($('#user-avatar-preview')); - // this produces the coordinates - $('#user-avatar').imgAreaSelect({ selectionOpacity: 0, onSelectEnd: selectChange }); - // show the preview - $('#user-avatar').imgAreaSelect({ aspectRatio: '1:1', onSelectChange: preview }); + // init the cropping + $('#user-avatar').imgAreaSelect({ + selectionOpacity: 0, + aspectRatio: '1:1', + onSelectEnd: selectChange, + onSelectChange: preview + }); }); -- cgit v1.2.3