BugFix for Foundry (handling missing placeholder-module attribute at an input element)

git-svn-id: https://svn.libreccm.org/ccm/trunk@2961 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-11-09 13:09:31 +00:00
parent d01d51a267
commit c071040215
1 changed files with 12 additions and 5 deletions

View File

@ -1473,11 +1473,18 @@
</xsl:call-template> </xsl:call-template>
<xsl:attribute name="value" select="$value"/> <xsl:attribute name="value" select="$value"/>
<xsl:if test="./@placeholder"> <xsl:choose>
<xsl:attribute name="placeholder" <xsl:when test="./@placeholder and ./@placeholder-module">
select="foundry:get-static-text(./@placeholder-module, <xsl:attribute name="placeholder"
./@placeholder)"/> select="foundry:get-static-text(./@placeholder-module,
</xsl:if> ./@placeholder)"/>
</xsl:when>
<xsl:when test="./@placeholder and not(./@placeholder-module)">
<xsl:attribute name="placeholder"
select="foundry:get-static-text('',
./@placeholder)"/>
</xsl:when>
</xsl:choose>
</input> </input>
</xsl:template> </xsl:template>