From: Steve Sutton Date: Thu, 16 Nov 2017 20:35:24 +0000 (-0500) Subject: Work with fullcalendar and height X-Git-Tag: v1.0.0^2~262 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=10b8d00e6cc8dc209c96f84aff096d8ee385e582;p=WP-Plugins%2Fglm-member-db-registrations.git Work with fullcalendar and height add height auto and set title to empty. --- 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' );