aboutsummaryrefslogtreecommitdiff
path: root/views/default/js/photos
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2012-01-02 15:40:23 -0500
committercash <cash.costello@gmail.com>2012-01-02 15:40:23 -0500
commitad4f0fc6c003e0b3365f542795c1c6b3ee06749d (patch)
tree96b86a9d8f756500d7b9f1b25a084a99bfda34db /views/default/js/photos
parentfbdaf2a33386e6746be4de50a0b4aceb06ff5e68 (diff)
downloadelgg-ad4f0fc6c003e0b3365f542795c1c6b3ee06749d.tar.gz
elgg-ad4f0fc6c003e0b3365f542795c1c6b3ee06749d.tar.bz2
displaying the labels on tags now
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();
}
);
}