From 6dd9dabbcc2fe9ddf3c31913e7799fba8b105e3a Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 20 Jun 2009 14:23:04 +0000 Subject: added cancel button to delete tag menu and cleaned up submit buttons --- views/default/js/tagging.php | 17 +++++++++++++++++ views/default/tidypics/tagging.php | 8 +++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/views/default/js/tagging.php b/views/default/js/tagging.php index a79914196..193ce1458 100644 --- a/views/default/js/tagging.php +++ b/views/default/js/tagging.php @@ -257,6 +257,8 @@ { offsetY = 60; + stopTagging(); + divWidth = $('#delete_tag_menu').width(); imgOffset = $('#tidypics_image').offset(); imgWidth = $('#tidypics_image').width(); @@ -279,4 +281,19 @@ } ); } + + function hideDeleteMenu() + { + $('#delete_tag_menu').hide(); + + // restart tag hovering + $('#tidypics_image').hover( + function(){ + $('.tidypics_tag').show(); + }, + function(){ + $('.tidypics_tag').hide(); + } + ); + } \ No newline at end of file diff --git a/views/default/tidypics/tagging.php b/views/default/tidypics/tagging.php index fcb0b8d4e..2cdc2f957 100644 --- a/views/default/tidypics/tagging.php +++ b/views/default/tidypics/tagging.php @@ -48,8 +48,8 @@ } $content .= ""; - $content .= "
"; - + $content .= ""; + echo elgg_view('input/form', array('internalid' => 'quicksearch', 'internalname' => 'form-phototagging', 'class' => 'quicksearch', 'action' => "{$vars['url']}action/tidypics/addtag", 'body' => $content)); ?> @@ -63,7 +63,9 @@ $name = "tags[{$id}]"; $content .= elgg_view("input/checkboxes", array('options' => array($text[0] => $text[0]), 'internalname' => $name, 'value' => '' )); } - $content .= "
"; + + $content .= ""; + $content .= ""; echo elgg_view('input/form', array('internalname' => 'form-deletetag', 'action' => "{$vars['url']}action/tidypics/deletetag", 'body' => $content)); -- cgit v1.2.3