Changeset 1212

Show
Ignore:
Timestamp:
01/10/07 04:17:00
Author:
johnsa
Message:

user client:

- some work on recurring events until field

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl

    r1211 r1212  
    19691969              <div class="dateFields"> 
    19701970                <span class="startDateLabel">Date </span> 
    1971                 <span dojoType="dropdowndatepicker" formatLength="medium" value="today" saveFormat="yyyyMMdd" id="bwEventWidgetStartDate" iconURL="{$resourcesRoot}/resources/calIcon.gif" onChange="setDate(this.form,'start')"
     1971                <span dojoType="dropdowndatepicker" formatLength="medium" value="today" saveFormat="yyyyMMdd" id="bwEventWidgetStartDate" iconURL="{$resourcesRoot}/resources/calIcon.gif"
    19721972                  <xsl:attribute name="value"><xsl:value-of select="form/start/rfc3339DateTime"/></xsl:attribute> 
    19731973                  <xsl:text> </xsl:text> 
     
    20432043              <div class="{$endDateTimeClass}" id="endDateTime"> 
    20442044                <div class="dateFields"> 
    2045                   <span dojoType="dropdowndatepicker" formatLength="medium" value="today" saveFormat="yyyyMMdd" id="bwEventWidgetEndDate" iconURL="{$resourcesRoot}/resources/calIcon.gif" onChange="setDate(this.form,'end')"
     2045                  <span dojoType="dropdowndatepicker" formatLength="medium" value="today" saveFormat="yyyyMMdd" id="bwEventWidgetEndDate" iconURL="{$resourcesRoot}/resources/calIcon.gif"
    20462046                    <xsl:attribute name="value"><xsl:value-of select="form/end/rfc3339DateTime"/></xsl:attribute> 
    20472047                    <xsl:text> </xsl:text> 
     
    25392539                    <strong>Repeat:</strong> 
    25402540                    <p> 
    2541                       <div class="dateFields"> 
    2542                         <input type="radio" name="recurCountUntil" value="until" id="recurUntil"> 
    2543                           <xsl:if test="form/recurring/until"> 
    2544                             <xsl:attribute name="checked">checked</xsl:attribute> 
    2545                           </xsl:if> 
    2546                         </input> 
    2547                         until 
    2548                         bwEventWidgetUntilDate 
    2549                       </div> 
    2550                       <!-- 
    2551                       <script language="JavaScript" type="text/javascript"> 
    2552                       <xsl:comment> 
    2553                         untilDateDynCalWidget = new dynCalendar('untilDateDynCalWidget', <xsl:value-of select="number(form/start/yearText/input/@value)"/>, <xsl:value-of select="number(form/start/month/select/option[@selected='selected']/@value)-1"/>, <xsl:value-of select="number(form/start/day/select/option[@selected='selected']/@value)"/>, 'untilDateCalWidgetCallback',false,'<xsl:value-of select="$resourcesRoot"/>/resources/'); 
    2554                       </xsl:comment> 
    2555                       </script>--> 
    2556                     </p> 
    2557                     <p> 
    25582541                      <input type="radio" name="recurCountUntil" value="forever"> 
    25592542                        <xsl:if test="not(form/recurring) or form/recurring/count = '-1'"> 
     
    25622545                      </input> 
    25632546                      forever 
    2564                       &#160; 
    25652547                      <input type="radio" name="recurCountUntil" value="count" id="recurCount"> 
    25662548                        <xsl:if test="form/recurring/count != '-1'"> 
     
    25732555                        </xsl:if> 
    25742556                      </input> 
    2575                       times 
     2557                      time(s) 
     2558                      <input type="radio" name="recurCountUntil" value="until" id="recurUntil"> 
     2559                        <xsl:if test="form/recurring/until"> 
     2560                          <xsl:attribute name="checked">checked</xsl:attribute> 
     2561                        </xsl:if> 
     2562                      </input> 
     2563                      until 
     2564                      <span dojoType="dropdowndatepicker" formatLength="medium" value="today" saveFormat="yyyyMMdd" id="bwEventWidgetUntilDate" iconURL="{$resourcesRoot}/resources/calIcon.gif" onClick="selectRecurCountUntil('recurUntil');"> 
     2565                        <xsl:attribute name="value"><xsl:value-of select="form/start/rfc3339DateTime"/></xsl:attribute> 
     2566                        <xsl:text> </xsl:text> 
     2567                      </span> 
    25762568                    </p> 
    25772569                  </div> 
  • trunk/deployment/webuser/webapp/resources/demoskins/resources/bedeworkEventForm.js

    r1208 r1212  
    267267        break; 
    268268      case "until": 
    269         // pad the month and day with zeros if only a single digit 
    270         var paddedMonth = (formObj.untilMonth.value < 10) ? '0'+formObj.untilMonth.value : formObj.untilMonth.value; 
    271         var paddedDay = (formObj.untilDay.value < 10) ? '0'+formObj.untilDay.value : formObj.untilDay.value; 
    272         formObj.until.value = formObj.untilYear.value + paddedMonth + paddedDay; 
     269        formObj.until.value = dojo.widget.byId("bwEventWidgetUntilDate").getVal();; 
    273270        break; 
    274271    } 
     
    285282  return true; 
    286283} 
     284