aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/js/tagging.php6
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(){