Work with fullcalendar and height
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 16 Nov 2017 20:35:24 +0000 (15:35 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 16 Nov 2017 20:35:24 +0000 (15:35 -0500)
add height auto and set title to empty.

js/frontRegApp.js
js/views/front/regClass.js

index b79b5cb..e6a9ee1 100644 (file)
@@ -606,7 +606,7 @@ app.Views.Front.RegClass = Backbone.View.extend({
                 var events = [];
                 _.each( times, function( time ){
                     events.push({
-                        title: time.name,
+                        title: '',
                         start: time.start_datetime.datetime,
                         end: time.end_datetime.datetime,
                         allday: time.all_day.value,
@@ -618,6 +618,7 @@ app.Views.Front.RegClass = Backbone.View.extend({
             defaultDate: startTime,
             timeFormat: 'h:mma',
             fixedWeekCount: false,
+            height: 'auto',
             eventClick: function( calEvent, jsEvent, view ){
                 $('.fc-event').css( 'background-color', '#3a67ad' );
                 $(this).css( 'background-color', 'red' );
index fda4f4e..0fda453 100644 (file)
@@ -125,7 +125,7 @@ app.Views.Front.RegClass = Backbone.View.extend({
                 var events = [];
                 _.each( times, function( time ){
                     events.push({
-                        title: time.name,
+                        title: '',
                         start: time.start_datetime.datetime,
                         end: time.end_datetime.datetime,
                         allday: time.all_day.value,
@@ -137,6 +137,7 @@ app.Views.Front.RegClass = Backbone.View.extend({
             defaultDate: startTime,
             timeFormat: 'h:mma',
             fixedWeekCount: false,
+            height: 'auto',
             eventClick: function( calEvent, jsEvent, view ){
                 $('.fc-event').css( 'background-color', '#3a67ad' );
                 $(this).css( 'background-color', 'red' );