diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-06-16 01:39:32 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-06-16 01:39:32 +0000 |
commit | b4b85ecc55a6787726627150a2ee93fd960ff2c6 (patch) | |
tree | 35e8e30305355b72c011c26597eec75759cc4b17 /views/default/js | |
parent | de4945a1bb1b627a530048c7dece50805d06f1ee (diff) | |
download | elgg-b4b85ecc55a6787726627150a2ee93fd960ff2c6.tar.gz elgg-b4b85ecc55a6787726627150a2ee93fd960ff2c6.tar.bz2 |
added delete phototags capability
Diffstat (limited to 'views/default/js')
-rw-r--r-- | views/default/js/tagging.php | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/views/default/js/tagging.php b/views/default/js/tagging.php index e27af7fca..a79914196 100644 --- a/views/default/js/tagging.php +++ b/views/default/js/tagging.php @@ -139,7 +139,7 @@ $('#tag_control').text("Stop Tagging");
showTagInstruct();
-
+ $('#delete_tag_menu').hide();
$('#tidypics_image').hover(
function(){
@@ -252,4 +252,31 @@ //Show loading
//$("#tag_menu").replaceWith('<div align="center" class="ajax_loader"></div>');
}
+
+ function deleteTags()
+ {
+ offsetY = 60;
+
+ divWidth = $('#delete_tag_menu').width();
+ imgOffset = $('#tidypics_image').offset();
+ imgWidth = $('#tidypics_image').width();
+ offsetX = parseInt((imgWidth - divWidth)/2);
+
+ _top = imgOffset.top + offsetY;
+ _left = imgOffset.left + offsetX;
+
+ $('#delete_tag_menu').show().css({
+ "top": _top + "px",
+ "left": _left + "px"
+ });
+
+ $('#tidypics_image').hover(
+ function(){
+ $('.tidypics_tag').hide();
+ },
+ function(){
+ $('.tidypics_tag').hide();
+ }
+ );
+ }
</script>
\ No newline at end of file |