forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r1657751 - /forrest/trunk/main/webapp/skins/common/xslt/html/tab-to-menu.xsl
Date Fri, 06 Feb 2015 07:31:33 GMT
Author: sjur
Date: Fri Feb  6 07:31:32 2015
New Revision: 1657751

Fixed a bug in level2 tabs where multiple tabs where highlighted at the same time when using
@id for tab association/identification. Now only the relevant tab is highlighted. The new
code is parallel to the level1 code a few lines above. Tested locally, and it seems to work
as intended. I could not find any bug reports on this issue, although FOR-127 and FOR-128
might be related. Those are very old bug reports though, and likely outdated by now.


Modified: forrest/trunk/main/webapp/skins/common/xslt/html/tab-to-menu.xsl
--- forrest/trunk/main/webapp/skins/common/xslt/html/tab-to-menu.xsl (original)
+++ forrest/trunk/main/webapp/skins/common/xslt/html/tab-to-menu.xsl Fri Feb  6 07:31:32 2015
@@ -164,7 +164,7 @@ which is then merged by site-to-xhtml.xs
       <xsl:when test="@id and @id = $matching-id">
         <xsl:call-template name="level2-selected"/>
-      <xsl:when test="@dir = $level2-longest-dir">
+      <xsl:when test="not(@id) and @dir=$level2-longest-dir or @href=$level2-longest-dir">
         <xsl:call-template name="level2-selected"/>

View raw message