From 2ebb9a2bd7f96c6d7f58ee1e24b9853401942de3 Mon Sep 17 00:00:00 2001 From: Cash Costello <cash.costello@gmail.com> Date: Sun, 7 Jun 2009 23:16:36 +0000 Subject: upgraded to newest imgareaselect --- views/default/js/tagging.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'views/default') 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(){ -- cgit v1.2.3