if ($timeSpecific) {
// Remove entry if it's not time specific or is in the past
- if ($timeVal['event_time'] == 0 || $timeVal['start_datetime']['timestamp'] < time()) {
+ if ($timeVal['start_datetime']['timestamp'] < time()) { // remove $timeVal['event_time'] == 0 ||
unset($this->regEventData['reg_time'][$timeKey]);
}
if ($this->regEventData['time_specific']['value']) {
// If event time is for time-specific event (might be either mixed in)
- if ($tv['event_time']) {
+// Not checking time specific/non-time specific reg_time records at this time due to adding reg_times manually that don't have event_time(s) that match
+// if ($tv['event_time']) {
// Try to find a current rate for this time - within the start and end days before this time
foreach ($cv['reg_rate'] as $rk=>$rv) {
}
- }
+// }
// Otherwise for non time specific eventes - rate days are per the first event date
} else {
<table>
<tr><th id="availabilityTitle" colspan="2"><!-- item date / time goes here --></th></tr>
<tr><th style="text-align: left">Active:</th><td><input id="dialogRegActive" type="checkbox" value=""></td></tr>
- <tr><th style="text-align: left">All Day:</th><td><input id="dialogTimeAllDay" type="checkbox" value=""></td></tr>
- <tr><th style="text-align: left">Track Attendees:</th><td><input id="dialogAttendees" type="checkbox" value=""></td></tr>
- <tr><th style="text-align: left">Start Time:</th><td><input id="dialogStartTime" class="glm-form-text-input-short time-input not-all-day" type="text" value=""></td></tr>
- <tr><th style="text-align: left">End Time:</th><td><input id="dialogEndTime" class="glm-form-text-input-short time-input not-all-day" type="text" value=""></td></tr>
+ <tr id="dialogAllDayLine"><th style="text-align: left">All Day:</th><td><input id="dialogTimeAllDay" type="checkbox" value=""></td></tr>
+ <tr id="dialogTrackLine"><th style="text-align: left">Track Attendees:</th><td><input id="dialogAttendees" type="checkbox" value=""></td></tr>
+ <tr id="dialogStartTimeLine"><th style="text-align: left">Start Time:</th><td><input id="dialogStartTime" class="glm-form-text-input-short time-input not-all-day" type="text" value=""></td></tr>
+ <tr id="dialogEndTimeLine"><th style="text-align: left">End Time:</th><td><input id="dialogEndTime" class="glm-form-text-input-short time-input not-all-day" type="text" value=""></td></tr>
<tr><th style="text-align: left">Maximum Attendees:</th><td><input class="glm-form-text-input-veryshort availabilityInput" type="text" id="dialogMaxAtt" value=""> 0 = Unlimited</td></tr>
<tr id="dialogRegLine"><th style="text-align: left">Registered Attendees:</th><td id="dialogRegAtt"></td></tr>
<tr id="dialogPendLine"><th style="text-align: left">Pending in Carts:</th><td id="dialogPendAtt"></td></tr>
{/if}
start: '{$t.start_datetime.datetime}',
end: '{$t.end_datetime.datetime}',
- active: {$t.active.value},
+ active: {if $t.active.value}true{else}false{/if},
{if $t.active.value}
backgroundColor: 'light-blue',
{else}
backgroundColor: '#aaa',
{/if}
allday: {$t.all_day.value},
- attendees: {$t.attendees.value},
+ attendees: {if $t.attendees.value}true{else}false{/if},
max: {$t.attendee_max},
count: {$t.attendee_count},
pending: {$t.attendees_pending},
$('#availabilityEditDialog').dialog('open');
- $('#availabilityTitle').html(calEvent.datetime);
- $('#dialogRegActive').prop('checked', calEvent.active)
- $('#dialogTimeAllDay').prop('checked', calEvent.allDay)
+ $('#dialogAllDayLine').hide();
+ $('#dialogTrackLine').hide();
+ $('#dialogStartTimeLine').hide();
+ $('#dialogEndTimeLine').hide();
+ $('#availabilityTitle').html(calEvent.datetime);
+ $('#dialogRegActive').prop('checked', calEvent.active);
+ $('#dialogTimeAllDay').prop('checked', calEvent.allDay);
+ $('#dialogStartTime').val(calEvent.start);
+ $('#dialogEndTime').val(calEvent.end);
$('#dialogMaxAtt').val(calEvent.max);
$('#dialogRegLine').show();
$('#dialogRegAtt').html(calEvent.count);