From 5dc295d0d3ff7cdd70977d0d8f3750bd7fded4f7 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 19 Oct 2017 09:48:38 -0400 Subject: [PATCH] Remove old setup of fullCalendar and remove debug output. Comment out the debug in registrations. Removing old setup for fullCalendar since I have this brought into the backbone views now. --- models/front/registrations/registration.php | 2 +- views/front/registrations/registration.html | 45 +-------------------- 2 files changed, 3 insertions(+), 44 deletions(-) diff --git a/models/front/registrations/registration.php b/models/front/registrations/registration.php index 7f1ca65..5546a3d 100644 --- a/models/front/registrations/registration.php +++ b/models/front/registrations/registration.php @@ -203,7 +203,7 @@ } } - echo '
$regEvent: ' . print_r( $regEvent, true ) . '
'; + // echo '
$regEvent: ' . print_r( $regEvent, true ) . '
'; // Build the regClass JSON for the template. $regClassJSON = '[' . implode( ',', $jsonClasses ) . ']'; diff --git a/views/front/registrations/registration.html b/views/front/registrations/registration.html index 5927d1e..aa4f73b 100644 --- a/views/front/registrations/registration.html +++ b/views/front/registrations/registration.html @@ -234,50 +234,9 @@ var app = { return regex.test(email); }, {if $regEvent.time_specific.value} - // initFullCalendar: function( isNew, idVal ){ - // return false; - // if ({$regEvent.time_specific.value}) { - // var calendar = $('#eventCalendar').fullCalendar({ - // {if $regEvent} - // events: [ - // {$sep = ''} - // {foreach $regEvent.reg_class.times as $t} - // {$sep}{ - // {if $t.attendee_max == 0} - // title : 'unlimited', - // {else} - // title : '{$t.attendee_max}-{$t.attendee_count}-{$t.attendees_pending}-{$t.attendees_available}', - // {/if} - // start : '{$t.start_datetime.datetime}', - // end : '{$t.end_datetime.datetime}', - // allday : {if $t.all_day.value}true{else}false{/if}, - // reg_time: {$t.id} - // } - // {$sep = ','} - // {/foreach} - // ], - // defaultDate : '{$regEventFirstTime.start_time.datetime}', - // timeFormat : 'h:mma', - // fixedWeekCount : false, - // eventClick: function(calEvent, jsEvent, view) { - // $('.fc-event').css('background-color', '#3a67ad'); - // if ( isNew ) { - // jQuery( '#add_reg-select-time' ).val( calEvent.reg_time ); - // jQuery( '#add_reg-select-time-display' ).html( calEvent.start.format('L LT') ); - // } else { - // jQuery( '#reg-time-' + idVal ).val( calEvent.reg_time ); - // jQuery( '#reg-time-display-' + idVal ).html( calEvent.start.format('L LT') ); - // } - // $(this).css('background-color', 'red'); - // } - // {/if} - // }); - // } - // return calendar; - // }, - timeSpecific: true, + timeSpecific: true, {else} - timeSpecific: false, + timeSpecific: false, {/if} calendar: false, }; -- 2.17.1