From: Michael J. Rubinsky Date: Fri, 30 Jan 2009 16:51:29 +0000 (-0500) Subject: Tweak output of ajax tag actions - don't show section header if no tags etc... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=71de3cfc34412fb9ef376e586729ce9443f5ff8f;p=horde.git Tweak output of ajax tag actions - don't show section header if no tags etc... --- 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();