tdraier 2005/07/05 17:16:12 CEST
Modified files:
src/webapp/WEB-INF/chiba html-form-controls.xsl html4.xsl
Log:
fixed calendar popup
Revision Changes Path
1.9 +4 -0
senseiwebapp/src/webapp/WEB-INF/chiba/html-form-controls.xsl
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/senseiwebapp/src/webapp/WEB-INF/chiba/html-form-controls.xsl.diff?r1=1.8&r2=1.9&f=h
1.8 +0 -5 senseiwebapp/src/webapp/WEB-INF/chiba/html4.xsl
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/senseiwebapp/src/webapp/WEB-INF/chiba/html4.xsl.diff?r1=1.7&r2=1.8&f=h
Index: html-form-controls.xsl
===================================================================
RCS file:
/home/cvs/repository/senseiwebapp/src/webapp/WEB-INF/chiba/html-form-controls.xsl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- html-form-controls.xsl 18 May 2005 12:42:04 -0000 1.8
+++ html-form-controls.xsl 5 Jul 2005 15:16:12 -0000 1.9
@@ -28,6 +28,7 @@
<xsl:variable name="repeat-id"
select="ancestor::*[name(.)='xforms:repeat'][1]/@id"/>
<xsl:variable name="pos" select="position()"/>
<xsl:variable name="id" select="@id"/>
+ <xsl:variable name="bind" select="@xforms:bind"/>
<xsl:if test="$debug-enabled='true'">
<xsl:message>###repeat-id: <xsl:value-of
select="$repeat-id"/></xsl:message>
@@ -46,6 +47,9 @@
<xsl:attribute name="value">
<xsl:value-of select="chiba:data/text()"/>
</xsl:attribute>
+ <xsl:if test="//xforms:[EMAIL PROTECTED]/@xforms:type='date'">
+ <xsl:attribute
name="onfocus">showCalendar('',this,this,'<xsl:value-of
select="chiba:data/text()"/>','<xsl:value-of
select="concat($id,'-value')"/>',0,30,1)</xsl:attribute>
+ </xsl:if>
<xsl:attribute name="title">
<xsl:value-of select="normalize-space(xforms:hint)"/>
</xsl:attribute>
Index: html4.xsl
===================================================================
RCS file:
/home/cvs/repository/senseiwebapp/src/webapp/WEB-INF/chiba/html4.xsl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- html4.xsl 18 May 2005 16:31:02 -0000 1.7
+++ html4.xsl 5 Jul 2005 15:16:12 -0000 1.8
@@ -117,11 +117,6 @@
</script>
</xsl:if>
- <!-- :olli hack -->
- <!-- import slider JavaScript -->
- <script type="text/javascript" src="scripts/slider.js"></script>
- <!-- :olli hack ende -->
-
<xsl:apply-templates/>
</xsl:template>