Fixed problems when there's no calendar data for the admin event calendar
authorChuck Scott <cscott@gaslightmedia.com>
Wed, 9 Mar 2016 21:43:31 +0000 (16:43 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Wed, 9 Mar 2016 21:43:31 +0000 (16:43 -0500)
views/admin/events/edit.html

index 21642d1..3e798f4 100644 (file)
 
                 if (table == 'glm-table-calendar' && !fullCalendarLoaded) {
                     $('#eventCalendar').fullCalendar({
-                        events: [
         {if $haveTimes} 
+                        events: [
             {$sep = ''}
             {foreach $times as $t}
                             {$sep}{
                             }
                 {$sep = ','}
             {/foreach}
-        {/if}
                         ],
                         defaultDate : '{$firstTime.start_time.datetime}'
+            {/if}
                     });
                     fullCalendarLoaded = true;
                 }