forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r381102 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/nav-section.ft
Date Sun, 26 Feb 2006 15:07:59 GMT
Author: thorsten
Date: Sun Feb 26 07:07:58 2006
New Revision: 381102

URL: http://svn.apache.org/viewcvs?rev=381102&view=rev
Log:
If the nav-section contract is requested with expanding=true then do not at the onclick trigger
to the span which shows/hide the menu. 

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/nav-section.ft

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/nav-section.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/nav-section.ft?rev=381102&r1=381101&r2=381102&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/nav-section.ft
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/nav-section.ft
Sun Feb 26 07:07:58 2006
@@ -111,8 +111,12 @@
             <xsl:otherwise></xsl:otherwise>
           </xsl:choose>
         </xsl:variable>
-        <li class="pagegroup{$selected}" id="{$tagid}Title">
-          <span onclick="SwitchMenu('{$tagid}')">
+        <li class="pagegroup{normalize-space($selected)}" id="{$tagid}Title">
+          <span>
+            <xsl:if test="$expanding = 'true'">
+              <xsl:attribute name="onclick">SwitchMenu('<xsl:value-of 
+                select="normalize-space($tagid)" />')</xsl:attribute>
+            </xsl:if>
             <xsl:value-of select="h1"/>
           </span>
           <ul class="{$selected}menuitemgroup" id="{$tagid}">



Mime
View raw message