Changeset 1151
- Timestamp:
- 12/13/06 01:54:32
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.css
r1146 r1151 681 681 padding: 0; 682 682 } 683 #recurrenceFields #monthRecurFields div, 684 #recurrenceFields #yearRecurFields div { 685 display: block; 686 margin: 0 0 0.5em 0; 687 } 688 #recurrenceFields #yearMonthCheckBoxList, 689 #recurrenceFields #yearMonthDaysCheckBoxList, 690 #recurrenceFields #yearDaysCheckBoxList { 691 margin: 0.5em 0 0.5em 2em; 692 display: block; 693 clear: both; 694 } 683 695 .shown { 684 696 display: inline; 685 697 } 686 698 .invisible { 687 display: none ;699 display: none !important; 688 700 } 689 701 .hidden { trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r1150 r1151 975 975 <xsl:when test="recurring='true'"> 976 976 Edit: 977 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}"> 978 master event 979 </a> 980 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 981 this instance 982 </a> 977 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}">master</a>, 978 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">instance</a> 979 <br/> 983 980 </xsl:when> 984 981 <xsl:otherwise> 985 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}"> 986 Edit 987 </a> 982 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}">Edit</a> 983 | 988 984 </xsl:otherwise> 989 985 </xsl:choose> 990 |991 986 </xsl:if> 992 987 <xsl:if test="owner != /bedework/userid"> … … 995 990 Annotate: 996 991 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}"> 997 master event 992 master 993 </a>, 994 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 995 this 998 996 </a> 999 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1000 this instance 1001 </a> 997 <br/> 1002 998 </xsl:when> 1003 999 <xsl:otherwise> … … 1005 1001 Annotate 1006 1002 </a> 1003 | 1007 1004 </xsl:otherwise> 1008 1005 </xsl:choose> 1009 |1010 1006 </xsl:if> 1011 1007 <xsl:if test="owner != /bedework/userid"> … … 1021 1017 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}"> 1022 1018 all 1023 </a> 1019 </a>, 1024 1020 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1025 thisinstance1021 instance 1026 1022 </a> 1027 1023 </xsl:when> … … 1327 1323 <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit master"/> 1328 1324 Edit: 1329 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}"> 1330 master event 1331 </a> 1332 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1333 this instance 1334 </a> 1325 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}">master</a>,<a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">instance</a> 1335 1326 </xsl:when> 1336 1327 <xsl:otherwise> … … 1348 1339 <img src="{$resourcesRoot}/resources/std-ical_iconEditDkGray.gif" width="12" height="16" border="0" alt="edit master"/> 1349 1340 Annotate: 1350 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}"> 1351 master event 1352 </a> 1353 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1354 this instance 1355 </a> 1341 <a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}">master</a>,<a href="{$editEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">instance</a> 1356 1342 </xsl:when> 1357 1343 <xsl:otherwise> … … 1376 1362 <img src="{$resourcesRoot}/resources/trashIcon.gif" width="13" height="13" border="0" alt="delete all"/> 1377 1363 Delete: 1378 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}"> 1379 all 1380 </a> 1381 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}"> 1382 this instance 1383 </a> 1364 <a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}">all</a>,<a href="{$delEvent}&subid={$subscriptionId}&calPath={$calPath}&guid={$guid}&recurrenceId={$recurrenceId}">instance</a> 1384 1365 </xsl:when> 1385 1366 <xsl:otherwise> … … 2211 2192 <!-- ================= --> 2212 2193 <input type="checkbox" name="recurrenceFlag" onclick="swapRecurrence(this)" value="on"/> 2213 <!-- set these dynamically -->2194 <!-- set these dynamically when form is submitted --> 2214 2195 <input type="hidden" name="interval" value=""/> 2215 2196 <input type="hidden" name="count" value=""/> … … 2227 2208 <td class="recurrenceFrequency" rowspan="2"> 2228 2209 <strong>Frequency:</strong><br/> 2229 <!-- "freq" is used to determine if a recurrence should be created; test for " none" -->2210 <!-- "freq" is used to determine if a recurrence should be created; test for "NONE" --> 2230 2211 <input type="radio" name="freq" value="NONE" onclick="showRecurrence(this.value)" checked="checked"/>none<br/> 2231 2212 <!--<input type="radio" name="freq" value="HOURLY" onclick="showRecurrence(this.value)"/>hourly<br/>--> … … 2259 2240 </p> 2260 2241 <p> 2261 <div id=" byDayWeek">2242 <div id="weekRecurFields"> 2262 2243 <xsl:call-template name="byDayChkBoxList"> 2263 2244 <xsl:with-param name="name">byDayWeek</xsl:with-param> … … 2266 2247 </p> 2267 2248 <p align="right"> 2268 <a href="javascript:recurSelectWeekdays(' byDayWeek')">select weekdays</a> |2269 <a href="javascript:recurSelectWeekends(' byDayWeek')">select weekends</a>2249 <a href="javascript:recurSelectWeekdays('weekRecurFields')">select weekdays</a> | 2250 <a href="javascript:recurSelectWeekends('weekRecurFields')">select weekends</a> 2270 2251 </p> 2271 2252 </div> … … 2276 2257 every <input type="text" name="monthlyInterval" size="2" value="1"/> month(s) 2277 2258 </p> 2259 <div id="monthRecurFields"> 2260 <div id="monthRecurFields1"> 2261 on 2262 <select name="bymonthposPos1" width="7em" onchange="revealNextRecurField(this,'monthRecurFields2')"> 2263 <xsl:call-template name="recurrenceDayPosOptions"/> 2264 </select> 2265 <xsl:call-template name="byDayChkBoxList"/> 2266 </div> 2267 <xsl:call-template name="buildRecurFields"> 2268 <xsl:with-param name="current">2</xsl:with-param> 2269 <xsl:with-param name="total">10</xsl:with-param> 2270 <xsl:with-param name="name">month</xsl:with-param> 2271 </xsl:call-template> 2272 </div> 2278 2273 <p> 2279  on 2280 <select name="bymonthposPos1" width="7em"> 2281 <xsl:call-template name="recurrenceDayPosOptions"/> 2282 </select> 2283 <xsl:call-template name="byDayChkBoxList"/><br/> 2284 and 2285 <select name="bymonthposPos2" width="7em"> 2286 <xsl:call-template name="recurrenceDayPosOptions"/> 2287 </select> 2288 <xsl:call-template name="byDayChkBoxList"/><br/> 2289 and 2290 <select name="bymonthposPos3" width="7em"> 2291 <xsl:call-template name="recurrenceDayPosOptions"/> 2292 </select> 2293 <xsl:call-template name="byDayChkBoxList"/><br/> 2294 and 2295 <select name="bymonthposPos4" width="7em"> 2296 <xsl:call-template name="recurrenceDayPosOptions"/> 2297 </select> 2298 <xsl:call-template name="byDayChkBoxList"/> 2299 </p> 2300 <p> 2301 <input type="checkbox" name="swapMonthCheckBoxList" value="" onclick="swapVisible(this,'monthCheckBoxList')"/> 2274 <input type="checkbox" name="swapMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'monthDaysCheckBoxList')"/> 2302 2275 on these days:<br/> 2303 <div id="month CheckBoxList" class="invisible">2276 <div id="monthDaysCheckBoxList" class="invisible"> 2304 2277 <xsl:call-template name="buildCheckboxList"> 2305 2278 <xsl:with-param name="current">1</xsl:with-param> 2306 2279 <xsl:with-param name="end">31</xsl:with-param> 2307 <xsl:with-param name="name"> bymonthdayBoxes</xsl:with-param>2280 <xsl:with-param name="name">monthDayBoxes</xsl:with-param> 2308 2281 </xsl:call-template> 2309 2282 </div> 2310 2283 </p> 2311 2284 </div> 2285 <!-- yearly --> 2312 2286 <div id="yearlyRecurrenceRules" class="invisible"> 2313 2287 <strong>Interval:</strong> 2314 2288 every <input type="text" name="monthlyInterval" size="2" value="1"/> years(s)<br/> 2315 <p> 2316 <input type="radio" name="yearrrule" value="bymonthpos" onclick="swapYearCheckBoxList(this)" checked="checked"/> 2317 on 2318 <select name="bymonthposPos1" width="7em"> 2319 <xsl:call-template name="recurrenceDayPosOptions"/> 2320 </select> 2321 <select name="bymonthposDay1" width="7em"> 2322 <xsl:for-each select="/bedework/daynames/val"> 2323 <option> 2324 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2325 <xsl:value-of select="."/> 2326 </option> 2327 </xsl:for-each> 2328 </select> of 2329 <select name="bymonthposMonth1" width="7em"> 2330 <xsl:for-each select="/bedework/monthvalues/val"> 2331 <option> 2332 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2333 <xsl:variable name="pos" select="position()"/> 2334 <xsl:value-of select="/bedework/monthlabels/val[position() = $pos]"/> 2335 </option> 2336 </xsl:for-each> 2337 </select> 2338 <div class="extraByMonthPosFields"> 2339 and 2340 <select name="bymonthposPos2" width="7em"> 2289 <div id="yearRecurFields"> 2290 <div id="yearRecurFields1"> 2291 on 2292 <select name="byyearposPos1" width="7em" onchange="revealNextRecurField(this,'yearRecurFields2')"> 2341 2293 <xsl:call-template name="recurrenceDayPosOptions"/> 2342 2294 </select> 2343 <select name="bymonthposDay2" width="7em"> 2344 <xsl:for-each select="/bedework/daynames/val"> 2345 <option> 2346 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2347 <xsl:value-of select="."/> 2348 </option> 2349 </xsl:for-each> 2350 </select> of 2351 <select name="bymonthposMonth2" width="7em"> 2352 <xsl:for-each select="/bedework/monthvalues/val"> 2353 <option> 2354 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2355 <xsl:variable name="pos" select="position()"/> 2356 <xsl:value-of select="/bedework/monthlabels/val[position() = $pos]"/> 2357 </option> 2358 </xsl:for-each> 2359 </select><br/> 2360 and 2361 <select name="bymonthposPos3" width="7em"> 2362 <xsl:call-template name="recurrenceDayPosOptions"/> 2363 </select> 2364 <select name="bymonthposDay3" width="7em"> 2365 <option value="none">none</option> 2366 <xsl:for-each select="/bedework/daynames/val"> 2367 <option> 2368 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2369 <xsl:value-of select="."/> 2370 </option> 2371 </xsl:for-each> 2372 </select> of 2373 <select name="bymonthposMonth3" width="7em"> 2374 <xsl:for-each select="/bedework/monthvalues/val"> 2375 <option> 2376 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2377 <xsl:variable name="pos" select="position()"/> 2378 <xsl:value-of select="/bedework/monthlabels/val[position() = $pos]"/> 2379 </option> 2380 </xsl:for-each> 2381 </select><br/> 2382 and 2383 <select name="bymonthposPos4" width="7em"> 2384 <xsl:call-template name="recurrenceDayPosOptions"/> 2385 </select> 2386 <select name="bymonthposDay4" width="7em"> 2387 <xsl:for-each select="/bedework/daynames/val"> 2388 <option> 2389 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2390 <xsl:value-of select="."/> 2391 </option> 2392 </xsl:for-each> 2393 </select> of 2394 <select name="bymonthposMonth4" width="7em"> 2395 <xsl:for-each select="/bedework/monthvalues/val"> 2396 <option> 2397 <xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute> 2398 <xsl:variable name="pos" select="position()"/> 2399 <xsl:value-of select="/bedework/monthlabels/val[position() = $pos]"/> 2400 </option> 2401 </xsl:for-each> 2402 </select> 2295 <xsl:call-template name="byDayChkBoxList"/> 2296 </div> 2297 <xsl:call-template name="buildRecurFields"> 2298 <xsl:with-param name="current">2</xsl:with-param> 2299 <xsl:with-param name="total">10</xsl:with-param> 2300 <xsl:with-param name="name">year</xsl:with-param> 2301 </xsl:call-template> 2302 </div> 2303 <p> 2304 <input type="checkbox" name="swapYearMonthCheckBoxList" value="" onclick="swapVisible(this,'yearMonthCheckBoxList')"/> 2305 in these months: 2306 <div id="yearMonthCheckBoxList" class="invisible"> 2307 <xsl:for-each select="/bedework/monthlabels/val"> 2308 <xsl:variable name="pos"><xsl:value-of select="position()"/></xsl:variable> 2309 <span class="chkBoxListItem"> 2310 <input type="checkbox" name="yearMonths"> 2311 <xsl:attribute name="value"><xsl:value-of select="/bedework/monthvalues/val[position() = $pos]"/></xsl:attribute> 2312 </input> 2313 <xsl:value-of select="."/> 2314 </span> 2315 <xsl:if test="$pos mod 6 = 0"><br/></xsl:if> 2316 </xsl:for-each> 2403 2317 </div> 2404 2318 </p> 2405 2319 <p> 2406 <input type="checkbox" name="swapYearCheckBoxList" value="" onclick="swapVisible(this,'yearCheckBoxList')"/>on these days of the year:<br/> 2407 <div id="yearCheckBoxList" class="invisible"> 2320 <input type="checkbox" name="swapYearMonthDaysCheckBoxList" value="" onclick="swapVisible(this,'yearMonthDaysCheckBoxList')"/> 2321 on these days of the month:<br/> 2322 <div id="yearMonthDaysCheckBoxList" class="invisible"> 2323 <xsl:call-template name="buildCheckboxList"> 2324 <xsl:with-param name="current">1</xsl:with-param> 2325 <xsl:with-param name="end">31</xsl:with-param> 2326 <xsl:with-param name="name">yearMonthDayBoxes</xsl:with-param> 2327 </xsl:call-template> 2328 </div> 2329 </p> 2330 <p> 2331 <input type="checkbox" name="swapYearDaysCheckBoxList" value="" onclick="swapVisible(this,'yearDaysCheckBoxList')"/> 2332 on these days of the year:<br/> 2333 <div id="yearDaysCheckBoxList" class="invisible"> 2408 2334 <xsl:call-template name="buildCheckboxList"> 2409 2335 <xsl:with-param name="current">1</xsl:with-param> 2410 2336 <xsl:with-param name="end">366</xsl:with-param> 2411 <xsl:with-param name="name"> byyeardayBoxes</xsl:with-param>2337 <xsl:with-param name="name">yearDayBoxes</xsl:with-param> 2412 2338 </xsl:call-template> 2413 2339 </div> … … 2416 2342 </td> 2417 2343 </tr> 2344 <!-- recurrence count, until, forever --> 2418 2345 <tr> 2419 2346 <td class="recurrenceUntil"> … … 2422 2349 <p> 2423 2350 <div class="dateFields"> 2424 <input type="radio" name="r CountUntil" value="until"/>2351 <input type="radio" name="recurCountUntil" value="until" id="recurUntil"/> 2425 2352 until 2426 <select name="untilMonth" >2353 <select name="untilMonth" onchange="selectRecurCountUntil('recurUntil')"> 2427 2354 <xsl:for-each select="form/start/month/select/option"> 2428 2355 <xsl:copy-of select="."/> 2429 2356 </xsl:for-each> 2430 2357 </select> 2431 <select name="untilDay" >2358 <select name="untilDay" onchange="selectRecurCountUntil('recurUntil')"> 2432 2359 <xsl:for-each select="form/start/day/select/option"> 2433 2360 <xsl:copy-of select="."/> … … 2436 2363 <xsl:choose> 2437 2364 <xsl:when test="/bedework/creating = 'true'"> 2438 <select name="untilYear" >2365 <select name="untilYear" onchange="selectRecurCountUntil('recurUntil')"> 2439 2366 <xsl:for-each select="form/start/year/select/option"> 2440 2367 <xsl:copy-of select="."/> … … 2443 2370 </xsl:when> 2444 2371 <xsl:otherwise> 2445 <input type="text" name="untilYear" size="4" />2372 <input type="text" name="untilYear" size="4" onchange="selectRecurCountUntil('recurUntil')"/> 2446 2373 <xsl:attribute name="value"><xsl:value-of select="form/start/yearText/input/@value"/></xsl:attribute> 2447 2374 </xsl:otherwise> … … 2455 2382 </p> 2456 2383 <p> 2457 <input type="radio" name="r CountUntil" value="forever" checked="checked"/>2384 <input type="radio" name="recurCountUntil" value="forever" checked="checked"/> 2458 2385 forever 2459 2386   2460 <input type="radio" name="r CountUntil" value="count"/>2461 <input type="text" value="1" size="2" name="count "/> times2387 <input type="radio" name="recurCountUntil" value="count" id="recurCount"/> 2388 <input type="text" value="1" size="2" name="countHolder" onchange="selectRecurCountUntil('recurCount')"/> times 2462 2389 </p> 2463 2390 </div> … … 2645 2572 </span> 2646 2573 <xsl:if test="$current mod $splitter = 0"><br/></xsl:if> 2574 <xsl:if test="$current = $end"><br/></xsl:if> 2647 2575 <xsl:if test="$current < $end"> 2648 2576 <xsl:call-template name="buildCheckboxList"> … … 2663 2591 <option value="-1">the last</option> 2664 2592 <option value="">every</option> 2593 </xsl:template> 2594 2595 <xsl:template name="buildRecurFields"> 2596 <xsl:param name="current"/> 2597 <xsl:param name="total"/> 2598 <xsl:param name="name"/> 2599 <div class="invisible"> 2600 <xsl:attribute name="id"><xsl:value-of select="$name"/>RecurFields<xsl:value-of select="$current"/></xsl:attribute> 2601 and 2602 <select width="12em"> 2603 <xsl:attribute name="name">by<xsl:value-of select="$name"/>posPos<xsl:value-of select="$current"/></xsl:attribute> 2604 <xsl:if test="$current != $total"> 2605 <xsl:attribute name="onchange">revealNextRecurField(this,'<xsl:value-of select="$name"/>RecurFields<xsl:value-of select="$current+1"/>')</xsl:attribute> 2606 </xsl:if> 2607 <xsl:call-template name="recurrenceDayPosOptions"/> 2608 </select> 2609 <xsl:call-template name="byDayChkBoxList"/> 2610 </div> 2611 <xsl:if test="$current < $total"> 2612 <xsl:call-template name="buildRecurFields"> 2613 <xsl:with-param name="current"><xsl:value-of select="$current+1"/></xsl:with-param> 2614 <xsl:with-param name="total"><xsl:value-of select="$total"/></xsl:with-param> 2615 <xsl:with-param name="name"><xsl:value-of select="$name"/></xsl:with-param> 2616 </xsl:call-template> 2617 </xsl:if> 2665 2618 </xsl:template> 2666 2619 trunk/deployment/webuser/webapp/resources/demoskins/resources/includes.js
r1150 r1151 154 154 } 155 155 } 156 // assemble the recurrence rules if recurrence is specified 157 function setRecurrence(form) { 158 if (form.recurrenceFlag.checked) { 159 160 } 156 // reveal the next recurrence field set if the selected value isn't 0 ('none') 157 function revealNextRecurField(obj,id) { 158 if (obj.value != '0') { 159 changeClass(id,'shown'); 160 } 161 } 162 function selectRecurCountUntil(id) { 163 document.getElementById(id).checked = true; 164 } 165 // Assemble the recurrence rules if recurrence is specified. 166 // Request params to set ('freq' is always set): 167 // interval, count, until (count OR until, not both) 168 // possibly: byday, bymonthday, bymonth, byyearday 169 function setRecurrence(formObj) { 170 if (formObj.recurrenceFlag.checked) { 171 var freq = getSelectedRadioButtonVal(formObj.freq); 172 if (freq != 'NONE') { 173 // build up recurrence rules 174 switch (freq) { 175 case "DAILY": 176 formObj.interval.value = formObj.dailyInterval.value; 177 break; 178 case "WEEKLY": 179 formObj.interval.value = formObj.weeklyInterval.value; 180 weekByDayChkBoxes = document.getElementById('weekRecurFields').getElementsByTagName('input'); 181 formObj.byday.value = collectRecurChkBoxVals(weekByDayChkBoxes); 182 break; 183 case "MONTHLY": 184 formObj.interval.value = formObj.monthlyInterval.value; 185 break; 186 case "YEARLY": 187 formObj.interval.value = formObj.yearlyInterval.value; 188 break; 189 } 190 // build up count or until values 191 var recur = getSelectedRadioButtonVal(formObj.recurCountUntil); 192 switch (recur) { 193 case "forever": 194 // do nothing 195 break; 196 case "count": 197 formObj.count.value = formObj.countHolder.value; 198 break; 199 case "until": 200 // pad the month and day with zeros if only a single digit 201 var paddedMonth = (formObj.untilMonth.value < 10) ? '0'+formObj.untilMonth.value : formObj.untilMonth.value; 202 var paddedDay = (formObj.untilDay.value < 10) ? '0'+formObj.untilDay.value : formObj.untilDay.value; 203 formObj.until.value = formObj.untilYear.value + paddedMonth + paddedDay; 204 break; 205 } 206 } 207 } 208 alert("frequency: " + freq + "\ninterval: " + formObj.interval.value + "\ncount: " + formObj.count.value + "\nuntil: " + formObj.until.value + "\nbyday: " + formObj.byday.value + "\nbymonthday" + formObj.bymonthday.value + "\nbymonth" + formObj.bymonth.value + "\nbyyearday" + formObj.byyearday.value + "\n"); 209 return true; 210 } 211 function getSelectedRadioButtonVal(radioCollection) { 212 for(var i = 0; i < radioCollection.length; i++) { 213 if(radioCollection[i].checked == true) { 214 return radioCollection[i].value; 215 } 216 } 217 } 218 function collectRecurChkBoxVals(chkBoxes) { 219 var collectedVals = ""; 220 if (chkBoxes) { 221 if (typeof chkBoxes.length != 'undefined') { 222 for (i = 0; i < chkBoxes.length; i++) { 223 if (chkBoxes[i].checked == true) { 224 collectedVals += chkBoxes[i].value + ','; 225 } 226 } 227 } 228 } 229 return collectedVals; 161 230 } 162 231 // launch a simple window for displaying information; no header or status bar … … 181 250 182 251 function startDateCalWidgetCallback(date, month, year) { 183 if (String(month).length == 1) {252 /*if (String(month).length == 1) { 184 253 month = '0' + month; 185 254 } 186 255 if (String(date).length == 1) { 187 256 date = '0' + date; 188 } 257 }*/ 189 258 document.eventForm['eventStartDate.month'].value = month; 190 259 document.eventForm['eventStartDate.day'].value = date; … … 192 261 } 193 262 function endDateCalWidgetCallback(date, month, year) { 194 if (String(month).length == 1) {263 /*if (String(month).length == 1) { 195 264 month = '0' + month; 196 265 } 197 266 if (String(date).length == 1) { 198 267 date = '0' + date; 199 } 268 }*/ 200 269 201 270 document.eventForm['eventEndDate.month'].value = month; … … 204 273 } 205 274 function untilDateCalWidgetCallback(date, month, year) { 206 if (String(month).length == 1) {275 /*if (String(month).length == 1) { 207 276 month = '0' + month; 208 277 } 209 278 if (String(date).length == 1) { 210 279 date = '0' + date; 211 } 280 }*/ 212 281 213 282 document.eventForm['untilMonth'].value = month; 214 283 document.eventForm['untilDay'].value = date; 215 284 document.eventForm['untilYear'].value = year; 285 selectRecurCountUntil('recurUntil'); 216 286 } 217 287
