Changeset 1745

Show
Ignore:
Timestamp:
02/15/08 17:35:23
Author:
johnsa
Message:

user client: properly init days value when defaulted to all day event

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • releases/bedework-3.4.1/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r1743 r1745  
    23952395                      <div class="durationBox"> 
    23962396                        <input type="radio" name="eventDuration.type" value="daytime" onclick="swapDurationType('daytime')" checked="checked"/> 
    2397                         <xsl:variable name="daysStr" select="form/end/duration/days/input/@value"/> 
    2398                         <input type="text" name="eventDuration.daysStr" size="2" value="{$daysStr}" id="durationDays"/>days 
     2397                        <input type="text" name="eventDuration.daysStr" size="2" id="durationDays"> 
     2398                          <xsl:attribute name="value"> 
     2399                            <xsl:choose> 
     2400                              <xsl:when test="/bedework/creating='true' and form/allDay/input/@checked='checked'">1</xsl:when> 
     2401                              <xsl:when test="/bedework/creating='true' and form/allDay/input/@checked!='checked'">0</xsl:when> 
     2402                              <xsl:otherwise><xsl:value-of select="form/end/duration/days/input/@value"/></xsl:otherwise> 
     2403                            </xsl:choose> 
     2404                          </xsl:attribute> 
     2405                        </input>days 
    23992406                        <span id="durationHrMin" class="{$durationHrMinClass}"> 
    2400                           <xsl:variable name="hoursStr" select="form/end/duration/hours/input/@value"/> 
    2401                           <input type="text" name="eventDuration.hoursStr" size="2" value="{$hoursStr}" id="durationHours"/>hours 
    2402                           <xsl:variable name="minutesStr" select="form/end/duration/minutes/input/@value"/> 
    2403                           <input type="text" name="eventDuration.minutesStr" size="2" value="{$minutesStr}" id="durationMinutes"/>minutes 
     2407                          <input type="text" name="eventDuration.hoursStr" size="2" id="durationHours"> 
     2408                            <xsl:attribute name="value"> 
     2409                              <xsl:choose> 
     2410                                <xsl:when test="/bedework/creating='true'">1</xsl:when> 
     2411                                <xsl:otherwise><xsl:value-of select="form/end/duration/hours/input/@value"/></xsl:otherwise> 
     2412                              </xsl:choose> 
     2413                            </xsl:attribute> 
     2414                          </input>hours 
     2415                          <input type="text" name="eventDuration.minutesStr" size="2" id="durationMinutes"> 
     2416                            <xsl:attribute name="value"> 
     2417                              <xsl:choose> 
     2418                                <xsl:when test="/bedework/creating='true'">0</xsl:when> 
     2419                                <xsl:otherwise><xsl:value-of select="form/end/duration/minutes/input/@value"/></xsl:otherwise> 
     2420                              </xsl:choose> 
     2421                            </xsl:attribute> 
     2422                          </input>minutes 
    24042423                        </span> 
    24052424                      </div>