From 32162183d59d995b35d7cb1f53d321a3b1051b04 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 4 Apr 2009 15:04:17 +0000 Subject: adding in tag menu - just starting this --- views/default/object/image.php | 63 ++++++++++++++++++++++++++---------------- 1 file changed, 39 insertions(+), 24 deletions(-) (limited to 'views/default/object/image.php') diff --git a/views/default/object/image.php b/views/default/object/image.php index 383af4b4d..454a52c59 100644 --- a/views/default/object/image.php +++ b/views/default/object/image.php @@ -94,10 +94,35 @@
-
+
- '; ?>
+ '; ?>
+
+getGUID(), false, 'user', '', 0); + + $content = ""; + $content .= ""; + + $content .= " +
+ +
"; + +echo $content; + //echo elgg_view('input/form', array('internalid' => 'quicksearch', 'internalname' => 'form-phototagging', 'class' => 'quicksearch', 'action' => "{$vars['url']}action/tidypics/phototagging", 'body' => $content)) +?> +
@@ -200,7 +225,7 @@ function closeInfoTag() { $('#tagging_instructions').hide(); - //$('#cont-menu').hide(); + $('#tag_menu').hide(); $('img#tidypics_image').imgAreaSelect( {hide: true} ); } @@ -209,43 +234,33 @@ $('img#tidypics_image').imgAreaSelect( { borderWidth: 2, borderColor1: 'white', - borderColor2: 'white' + borderColor2: 'white', + onSelectEnd: showMenu, + onSelectStart: hideMenu } ); -/* - $('.imgareaselect-handle').css('opacity', 0.7); - - $('img#tidypics_image').imgAreaSelect( {selectionColor: 'white', - maxWidth: 200, - maxHeight: 200, - minWidth: 60, - minHeight: 60, - borderWidth: 2, - onSelectEnd: showMenu, - onSelectStart: hideMenu} ); -*/ } function hideMenu() { - //$('#cont-menu').hide(); + $('#tag_menu').hide(); coordinates = ""; } function showMenu(oObject, oCoordenates) { - constX = -70; - constY = 1; + constX = 0; + constY = 0; // show the list of friends if (oCoordenates.width != 0 && oCoordenates.height != 0) { coordinates = oCoordenates; -/* - $('#cont-menu').show().css({ - "margin-top": oCoordenates.y2+constY + "px", - "margin-left": oCoordenates.x2+constX + "px" + + $('#tag_menu').show().css({ + "top": oCoordenates.y2+constY + "px", + "left": oCoordenates.x2+constX + "px" }); -*/ + //jQuery(".input-filtro").focus(); } } -- cgit v1.2.3