Changeset 1212
- Timestamp:
- 01/10/07 04:17:00
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r1211 r1212 1969 1969 <div class="dateFields"> 1970 1970 <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"> 1972 1972 <xsl:attribute name="value"><xsl:value-of select="form/start/rfc3339DateTime"/></xsl:attribute> 1973 1973 <xsl:text> </xsl:text> … … 2043 2043 <div class="{$endDateTimeClass}" id="endDateTime"> 2044 2044 <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"> 2046 2046 <xsl:attribute name="value"><xsl:value-of select="form/end/rfc3339DateTime"/></xsl:attribute> 2047 2047 <xsl:text> </xsl:text> … … 2539 2539 <strong>Repeat:</strong> 2540 2540 <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 until2548 bwEventWidgetUntilDate2549 </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>2558 2541 <input type="radio" name="recurCountUntil" value="forever"> 2559 2542 <xsl:if test="not(form/recurring) or form/recurring/count = '-1'"> … … 2562 2545 </input> 2563 2546 forever 2564  2565 2547 <input type="radio" name="recurCountUntil" value="count" id="recurCount"> 2566 2548 <xsl:if test="form/recurring/count != '-1'"> … … 2573 2555 </xsl:if> 2574 2556 </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> 2576 2568 </p> 2577 2569 </div> trunk/deployment/webuser/webapp/resources/demoskins/resources/bedeworkEventForm.js
r1208 r1212 267 267 break; 268 268 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();; 273 270 break; 274 271 } … … 285 282 return true; 286 283 } 284
