aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/avatar
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-10-01 20:09:16 -0400
committerCash Costello <cash.costello@gmail.com>2011-10-01 20:09:16 -0400
commita186ad16e258c6335e1757a20845c64056b87f15 (patch)
treedacac1c567323fcf9b8b6018918b7766dff90040 /views/default/forms/avatar
parent8be10bb100a6a4d9abc6bf7ee928d5c2e60004de (diff)
downloadelgg-a186ad16e258c6335e1757a20845c64056b87f15.tar.gz
elgg-a186ad16e258c6335e1757a20845c64056b87f15.tar.bz2
Fixes #3913 registering jquery.imgareaselect
Diffstat (limited to 'views/default/forms/avatar')
-rw-r--r--views/default/forms/avatar/crop.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/views/default/forms/avatar/crop.php b/views/default/forms/avatar/crop.php
index 9fcae25c4..b97db939c 100644
--- a/views/default/forms/avatar/crop.php
+++ b/views/default/forms/avatar/crop.php
@@ -5,6 +5,9 @@
* @uses $vars['entity']
*/
+elgg_load_js('jquery.imgareaselect');
+elgg_load_css('jquery.imgareaselect');
+
$master_image = $vars['entity']->getIconUrl('master');
?>
@@ -25,8 +28,6 @@ echo elgg_view('input/submit', array('value' => elgg_echo('avatar:create')));
?>
</div>
<!-- grab the required js for icon cropping -->
-<script type="text/javascript" src="<?php echo elgg_get_site_url(); ?>vendors/jquery/jquery.imgareaselect-0.9.8/scripts/jquery.imgareaselect.min.js"></script>
-<link rel="stylesheet" type="text/css" href="<?php echo elgg_get_site_url(); ?>vendors/jquery/jquery.imgareaselect-0.9.8/css/imgareaselect-deprecated.css" media="screen" />
<?php //@todo JS 1.8: no ?>
<script type="text/javascript">