aboutsummaryrefslogtreecommitdiff
path: root/views/default/js/photos
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/js/photos')
-rw-r--r--views/default/js/photos/tagging.php17
1 files changed, 11 insertions, 6 deletions
diff --git a/views/default/js/photos/tagging.php b/views/default/js/photos/tagging.php
index b00200e74..47bab9de5 100644
--- a/views/default/js/photos/tagging.php
+++ b/views/default/js/photos/tagging.php
@@ -102,9 +102,14 @@ elgg.tidypics.tagging.position = function() {
tag_left += image_pos.left;
tag_top += image_pos.top;
- $(this).css({
+ $(this).parent().css({
left: tag_left + 'px',
- top: tag_top + 'px',
+ top: tag_top + 'px' /*
+ width: tag_width + 'px',
+ height: tag_height + 'px' */
+ });
+
+ $(this).css({
width: tag_width + 'px',
height: tag_height + 'px'
});
@@ -117,19 +122,19 @@ elgg.tidypics.tagging.toggleTagHover = function() {
if (elgg.tidypics.tagging.tag_hover == false) {
$('.tidypics-photo').hover(
function() {
- $('.tidypics-tag').show();
+ $('.tidypics-tag-wrapper').show();
},
function() {
- $('.tidypics-tag').hide();
+ $('.tidypics-tag-wrapper').hide();
}
);
} else {
$('.tidypics-photo').hover(
function() {
- $('.tidypics-tag').hide();
+ $('.tidypics-tag-wrapper').hide();
},
function() {
- $('.tidypics-tag').hide();
+ $('.tidypics-tag-wrapper').hide();
}
);
}