Remove old setup of fullCalendar and remove debug output.
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 19 Oct 2017 13:48:38 +0000 (09:48 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 19 Oct 2017 13:48:38 +0000 (09:48 -0400)
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
views/front/registrations/registration.html

index 7f1ca65..5546a3d 100644 (file)
             }
         }
 
-        echo '<pre>$regEvent: ' . print_r( $regEvent, true ) . '</pre>';
+        // echo '<pre>$regEvent: ' . print_r( $regEvent, true ) . '</pre>';
 
         // Build the regClass JSON for the template.
         $regClassJSON = '[' . implode( ',', $jsonClasses ) . ']';
index 5927d1e..aa4f73b 100644 (file)
@@ -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,
 };