From 10b8d00e6cc8dc209c96f84aff096d8ee385e582 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 16 Nov 2017 15:35:24 -0500 Subject: [PATCH] Work with fullcalendar and height add height auto and set title to empty. --- js/frontRegApp.js | 3 ++- js/views/front/regClass.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/js/frontRegApp.js b/js/frontRegApp.js index b79b5cb..e6a9ee1 100644 --- a/js/frontRegApp.js +++ b/js/frontRegApp.js @@ -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' ); diff --git a/js/views/front/regClass.js b/js/views/front/regClass.js index fda4f4e..0fda453 100644 --- a/js/views/front/regClass.js +++ b/js/views/front/regClass.js @@ -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' ); -- 2.17.1