From ad4f0fc6c003e0b3365f542795c1c6b3ee06749d Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 2 Jan 2012 15:40:23 -0500 Subject: displaying the labels on tags now --- views/default/js/photos/tagging.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'views/default/js/photos') 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(); } ); } -- cgit v1.2.3