fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [7951] API: remove a-tag from incative tabs


From: Sigurd Nes
Subject: [Fmsystem-commits] [7951] API: remove a-tag from incative tabs
Date: Wed, 26 Oct 2011 13:48:40 +0000

Revision: 7951
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7951
Author:   sigurdne
Date:     2011-10-26 13:48:40 +0000 (Wed, 26 Oct 2011)
Log Message:
-----------
API: remove a-tag from incative tabs

Modified Paths:
--------------
    trunk/phpgwapi/inc/class.yui.inc.php

Modified: trunk/phpgwapi/inc/class.yui.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.yui.inc.php        2011-10-26 09:11:05 UTC (rev 
7950)
+++ trunk/phpgwapi/inc/class.yui.inc.php        2011-10-26 13:48:40 UTC (rev 
7951)
@@ -225,10 +225,21 @@
                                {
                                        $_function = " onclick=\"javascript: 
{$tab['function']};\"";
                                }
-                               $output .= <<<HTML
-                                       <li{$selected}><a 
href="{$tab['link']}"{$_function}><em>{$label}</em></a></li>
 
+                               if(!isset($tab['link']) && 
!isset($tab['function']))
+                               {
+                                       $selected = $selected ? $selected : ' 
class="disabled"';
+                                       $output .= <<<HTML
+                                               
<li{$selected}><a><em>{$label}</em></a></li>
 HTML;
+                               }
+                               else
+                               {
+                                       $output .= <<<HTML
+                                               <li{$selected}><a 
href="{$tab['link']}"{$_function}><em>{$label}</em></a></li>
+HTML;
+                               
+                               }
                        }
                        $output .= <<<HTML
                                </ul>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]