You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by up...@apache.org on 2004/01/15 23:03:06 UTC

cvs commit: cocoon-2.1/src/blocks/woody/samples/resources woody-field-styling.xsl

upayavira    2004/01/15 14:03:05

  Modified:    src/blocks/woody/samples/resources woody-field-styling.xsl
  Log:
  Fixing submit-on-change for radio buttons
  
  Revision  Changes    Path
  1.29      +2 -1      cocoon-2.1/src/blocks/woody/samples/resources/woody-field-styling.xsl
  
  Index: woody-field-styling.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/samples/resources/woody-field-styling.xsl,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- woody-field-styling.xsl	29 Dec 2003 15:43:58 -0000	1.28
  +++ woody-field-styling.xsl	15 Jan 2004 22:03:05 -0000	1.29
  @@ -101,6 +101,7 @@
         <xsl:when test="$vertical">
           <table cellpadding="0" cellspacing="0" border="0" title="{wi:hint}">
             <xsl:variable name="id" select="@id"/>
  +          <xsl:variable name="on-change" select="wi:styling/@submit-on-change"/>
             <xsl:for-each select="wi:selection-list/wi:item">
               <tr>
                 <td>
  @@ -108,7 +109,7 @@
                     <xsl:if test="@value = $value">
                       <xsl:attribute name="checked">checked</xsl:attribute>
                     </xsl:if>
  -                  <xsl:if test="wi:styling/@submit-on-change='true'">
  +                  <xsl:if test="$on-change='true'">
                       <xsl:attribute name="onchange">woody_submitForm(this)</xsl:attribute>
                     </xsl:if>
                   </input>