svn commit: r738127 - in /lenya/trunk/src/modules/menubar/xslt: menu2xhtml.xsl menubar2xhtml.xsl
[email protected] Tue, 27 Jan 2009 16:17:47 -0000
Newsgroups
gmane.comp.cms.lenya.cvs
Message-ID
<[email protected] >
Author: andreas
Date: Tue Jan 27 16:17:47 2009
New Revision: 738127
URL: http://svn.apache.org/viewvc?rev=738127&view=rev
Log:
Removing some validation issues in menubar.
Modified:
lenya/trunk/src/modules/menubar/xslt/menu2xhtml.xsl
lenya/trunk/src/modules/menubar/xslt/menubar2xhtml.xsl
Modified: lenya/trunk/src/modules/menubar/xslt/menu2xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/menubar/xslt/menu2xhtml.xsl?rev=738127&r1=738126&r2=738127&view=diff
==============================================================================
--- lenya/trunk/src/modules/menubar/xslt/menu2xhtml.xsl (original)
+++ lenya/trunk/src/modules/menubar/xslt/menu2xhtml.xsl Tue Jan 27 16:17:47 2009
@@ -84,12 +84,14 @@
<li>
<xsl:call-template name="checkItem"/>
<a>
- <xsl:copy-of select="@target"/>
<xsl:attribute name="href">
<xsl:value-of select="@href"/>
<xsl:apply-templates select="@*[local-name() != 'href']"/>
<xsl:text/>
</xsl:attribute>
+ <xsl:if test="@target = '_blank'">
+ <xsl:attribute name="onclick">window.open(this.href); return false;</xsl:attribute>
+ </xsl:if>
<span><xsl:apply-templates select="i18n:*|text()"/></span>
</a></li>
</xsl:when>
@@ -97,7 +99,6 @@
<li class="disabled">
<xsl:call-template name="checkItem"/>
<a>
- <xsl:copy-of select="@target"/>
<xsl:for-each select="menu:message">
<xsl:copy>
<i18n:translate>
Modified: lenya/trunk/src/modules/menubar/xslt/menubar2xhtml.xsl
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/menubar/xslt/menubar2xhtml.xsl?rev=738127&r1=738126&r2=738127&view=diff
==============================================================================
--- lenya/trunk/src/modules/menubar/xslt/menubar2xhtml.xsl (original)
+++ lenya/trunk/src/modules/menubar/xslt/menubar2xhtml.xsl Tue Jan 27 16:17:47 2009
@@ -196,7 +196,10 @@
<xsl:template name="workflow">
- <li id="info-state"><i18n:text>Workflow State</i18n:text>: <span name="workflow-state" id="workflow-state"><i18n:text><xsl:value-of select="$workflowstate"/></i18n:text></span></li>
+ <li id="info-state">
+ <i18n:text>Workflow State</i18n:text>:
+ <span id="workflow-state"><i18n:text><xsl:value-of select="$workflowstate"/></i18n:text></span>
+ </li>
<li id="info-live">
<xsl:choose>
<xsl:when test="$islive = 'false'">