Setup the default date for fullCalendar.
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 19 Jan 2018 21:13:51 +0000 (16:13 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 19 Jan 2018 21:13:51 +0000 (16:13 -0500)
This show the first date of the regEvent as default date.

views/admin/registrations/eventEditNotification.html

index 6275ee3..5fce459 100644 (file)
                 timezone: 'local',
                 events: [
                     regEvent
-                    {if !$newEntry}
-                    ,{
-                        id: 'notice',
-                        title: 'Send',
-                        start: '01/16/2018',
-                        end: '01/16/2018',
-                        allDay: true,
-                    }
-                    {/if}
                 ],
-                defaultDate: '01/27/2018',
+                defaultDate: '{$regEvent.first_datetime.datetime}',
             });
             // console.log( 'cal:', calendar );
         }