Changeset 2928
- Timestamp:
- 06/04/10 00:29:05
- Files:
-
- trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/eventForm.xsl (modified) (3 diffs)
- trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/javascript/bedeworkEventForm.js (modified) (2 diffs)
- trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/javascript/bedeworkScheduling.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/eventForm.xsl
r2919 r2928 1513 1513 <td class="schedDate"> 1514 1514 <!-- force day, hour, minute format --> 1515 <input type="text" name="eventDuration .daysStr" size="2" id="durationDaysSched">1515 <input type="text" name="eventDurationSched.daysStr" size="2" id="durationDaysSched"> 1516 1516 <xsl:attribute name="value"> 1517 1517 <xsl:choose> … … 1525 1525 <xsl:text> </xsl:text> 1526 1526 <span id="durationHrMinSched"> 1527 <input type="text" name="eventDuration .hoursStr" size="2" id="durationHoursSched">1527 <input type="text" name="eventDurationSched.hoursStr" size="2" id="durationHoursSched"> 1528 1528 <xsl:attribute name="value"> 1529 1529 <xsl:choose> … … 1535 1535 <xsl:copy-of select="$bwStr-AEEF-Hours"/> 1536 1536 <xsl:text> </xsl:text> 1537 <input type="text" name="eventDuration .minutesStr" size="2" id="durationMinutesSched">1537 <input type="text" name="eventDurationSched.minutesStr" size="2" id="durationMinutesSched"> 1538 1538 <xsl:attribute name="value"> 1539 1539 <xsl:choose> trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/javascript/bedeworkEventForm.js
r2893 r2928 285 285 allDayEndDateField.value = "true"; 286 286 durDays.value = 1; 287 bwGrid.allDay(true); 287 288 } else { 288 289 changeClass('startTimeFields','timeFields'); … … 292 293 allDayEndDateField.value = "false"; 293 294 durDays.value = 0; 295 bwGrid.allDay(false); 294 296 } 295 297 } trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/javascript/bedeworkScheduling.js
r2922 r2928 436 436 this.setFreeTime(); 437 437 }; 438 439 // if the "all day" checkbox is clicked, 440 // change the duration widgets, the duration in the grid, 441 // and recalculate the freetime lookup 442 this.allDay = function(isAllDay) { 443 if (isAllDay) { 444 $(".schedTime").hide(); 445 $("#durationHrMinSched").hide(); 446 $("#durationDaysSched").val(1); 447 $("#durationHoursSched").val(0); 448 $("#durationMinutesSched").val(0); 449 // set the duration in the bwGrid and recalculate cells 450 durationMils = 86400000; 451 cellsInDuration = durationMils / incrementMils; 452 // repopulate the free time lookup 453 this.setFreeTime(); 454 } else { 455 $(".schedTime").show(); 456 $("#durationHrMinSched").show(); 457 $("#durationDaysSched").val(0); 458 $("#durationHoursSched").val(1); 459 $("#durationMinutesSched").val(0); 460 // set the duration in the bwGrid and recalculate cells 461 durationMils = 3600000; 462 cellsInDuration = durationMils / incrementMils; 463 // repopulate the free time lookup 464 this.setFreeTime(); 465 } 466 } 438 467 439 468 this.display = function() {
