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-94f89814c4dfmaster
parent
d01d51a267
commit
c071040215
|
|
@ -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:when test="./@placeholder and ./@placeholder-module">
|
||||||
<xsl:attribute name="placeholder"
|
<xsl:attribute name="placeholder"
|
||||||
select="foundry:get-static-text(./@placeholder-module,
|
select="foundry:get-static-text(./@placeholder-module,
|
||||||
./@placeholder)"/>
|
./@placeholder)"/>
|
||||||
</xsl:if>
|
</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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue