Changeset 1754
- Timestamp:
- 04/28/06 08:37:45 (7 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.1/timeconditions/page.timeconditions.php
r1678 r1754 53 53 </div> 54 54 55 <div style="float: right; padding: 5 ; background: #e0e0ff; border: #2E78A7 solid 1px;">55 <div style="float: right; padding: 5px; background: #e0e0ff; border: #2E78A7 solid 1px;"> 56 56 <?php echo _("Server time:")?> <span id="idTime">00:00:00</span> 57 57 </div> … … 505 505 function edit_onsubmit() { 506 506 var msgInvalidTimeCondName = "<?php echo _('Please enter a valid Time Conditions Name'); ?>"; 507 var msgInvalidTimeMatch = "<?php echo _('Please enter the Time to Match'); ?>"; 508 509 setDestinations(edit,2); 507 var msgInvalidTimeMatch = "<?php echo _('Please enter the Time to Match, or set all to - to match all times.'); ?>"; 508 var msgInvalidDay = "<?php echo _('Please select BOTH or NO days, not just one.'); ?>"; 509 var msgInvalidMday = "<?php echo _('Please select BOTH or NO days of the month, not just one.'); ?>"; 510 var msgInvalidMth = "<?php echo _('Please select BOTH or NO months, not just one.'); ?>"; 511 510 512 511 513 defaultEmptyOK = false; … … 513 515 return warnInvalid(theForm.displayname, msgInvalidTimeCondName); 514 516 515 if (isEmpty(theForm.time.value) || isWhitespace(theForm.time.value)) 516 return warnInvalid(theForm.time, msgInvalidTimeMatch); 517 // Check to see that they're either all '-' or all numbers. 518 if ((theForm.hour_start.value == "-" || theForm.hour_finish.value == "-" || theForm.minute_start.value == "-" || theForm.minute_finish.value == "-") && (theForm.hour_start.value != "-" || theForm.hour_finish.value != "-" || theForm.minute_start.value != "-" || theForm.minute_finish.value != "-")) 519 return warnInvalid(theForm.displayname, msgInvalidTimeMatch); 520 521 if ((theForm.wday_start.value == "-" || theForm.wday_finish.value == "-") && (theForm.wday_start.value != "-" ||theForm.wday_finish.value != "-" )) 522 return warnInvalid(theForm.displayname, msgInvalidDay); 523 524 if ((theForm.mday_start.value == "-" || theForm.mday_finish.value == "-") && (theForm.mday_start.value != "-" || theForm.mday_finish.value != "-" )) 525 return warnInvalid(theForm.displayname, msgInvalidMday); 526 527 if ((theForm.month_start.value == "-" || theForm.month_finish.value == "-") && (theForm.month_start.value != "-" || theForm.month_finish.value != "-" )) 528 return warnInvalid(theForm.displayname, msgInvalidMth); 517 529 518 530 if (!validateDestinations(edit,2,true))
