From 71de3cfc34412fb9ef376e586729ce9443f5ff8f Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Fri, 30 Jan 2009 11:51:29 -0500 Subject: [PATCH] Tweak output of ajax tag actions - don't show section header if no tags etc... --- kronolith/lib/Imple/TagActions.php | 5 +++-- kronolith/templates/panel.inc | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/kronolith/lib/Imple/TagActions.php b/kronolith/lib/Imple/TagActions.php index 89a5923ac..1c7015130 100644 --- a/kronolith/lib/Imple/TagActions.php +++ b/kronolith/lib/Imple/TagActions.php @@ -89,7 +89,6 @@ class Kronolith_Imple_TagActions extends Kronolith_Imple private function _getTagHtml($tagger, $id, $type) { $tags = $tagger->getTags($id, 'calendar'); - $html = ''; $js = ''; if ($type == 'calendar') { @@ -103,11 +102,13 @@ class Kronolith_Imple_TagActions extends Kronolith_Imple $hasEdit = $event->hasPermission(PERMS_EDIT, Auth::getAuth()); } + $html = count($tags) ? '
' . _("Tags") . '
': ''; + $html .= '
 
'; } } diff --git a/kronolith/templates/panel.inc b/kronolith/templates/panel.inc index 537063f22..7a0e1cd53 100644 --- a/kronolith/templates/panel.inc +++ b/kronolith/templates/panel.inc @@ -44,10 +44,10 @@ $tagger = new Kronolith_Tagger();