diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-06-07 23:16:36 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-06-07 23:16:36 +0000 |
commit | 2ebb9a2bd7f96c6d7f58ee1e24b9853401942de3 (patch) | |
tree | 8f2e807ed388f9d3528884b6b603e8fdd397cd57 /views | |
parent | b3e029b15269068cfef4104c6df8988db2418edd (diff) | |
download | elgg-2ebb9a2bd7f96c6d7f58ee1e24b9853401942de3.tar.gz elgg-2ebb9a2bd7f96c6d7f58ee1e24b9853401942de3.tar.bz2 |
upgraded to newest imgareaselect
Diffstat (limited to 'views')
-rw-r--r-- | views/default/js/tagging.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/views/default/js/tagging.php b/views/default/js/tagging.php index f7e764194..d47d88a37 100644 --- a/views/default/js/tagging.php +++ b/views/default/js/tagging.php @@ -1,7 +1,7 @@ <?php
$photo_tags_json = $vars['photo_tags_json'];
?>
-<script type="text/javascript" src="<?= $vars['url'] ?>mod/tidypics/vendors/jquery.imgareaselect-0.7.js"></script>
+<script type="text/javascript" src="<?= $vars['url'] ?>mod/tidypics/vendors/jquery.imgareaselect-0.8.js"></script>
<script type="text/javascript" src="<?= $vars['url'] ?>mod/tidypics/vendors/jquery.quicksearch.js"></script>
<script type="text/javascript">
@@ -38,7 +38,9 @@ image = this;
imgOffset = $(image).offset();
-
+ imgOffset.left = parseInt(imgOffset.left) + parseInt($(image).css("border-left-width")) + parseInt($(image).css("padding-left"));
+ imgOffset.top = parseInt(imgOffset.top) + parseInt($(image).css("border-top-width")) + parseInt($(image).css("padding-top"));
+
tags = <?php echo $photo_tags_json; ?>;
$(tags).each(function(){
|