Casey Holzer преди 8 години
родител
ревизия
a017e49667
променени са 3 файла, в които са добавени 17 реда и са изтрити 10 реда
  1. 8 5
      src/agenda/AgendaView.js
  2. 8 5
      src/basic/BasicView.js
  3. 1 0
      src/defaults.js

+ 8 - 5
src/agenda/AgendaView.js

@@ -116,11 +116,14 @@ var AgendaView = FC.AgendaView = View.extend({
 
 		return '' +
 			'<table class="' + theme.getClass('tableGrid') + '">' +
-				'<thead class="fc-head">' +
-					'<tr>' +
-						'<td class="fc-head-container ' + theme.getClass('widgetHeader') + '"></td>' +
-					'</tr>' +
-				'</thead>' +
+				(this.opt('columnHead') ?
+					'<thead class="fc-head">' +
+						'<tr>' +
+							'<td class="fc-head-container ' + theme.getClass('widgetHeader') + '"></td>' +
+						'</tr>' +
+					'</thead>' :
+					''
+					) +
 				'<tbody class="fc-body">' +
 					'<tr>' +
 						'<td class="' + theme.getClass('widgetContent') + '">' +

+ 8 - 5
src/basic/BasicView.js

@@ -138,11 +138,14 @@ var BasicView = FC.BasicView = View.extend({
 
 		return '' +
 			'<table class="' + theme.getClass('tableGrid') + '">' +
-				'<thead class="fc-head">' +
-					'<tr>' +
-						'<td class="fc-head-container ' + theme.getClass('widgetHeader') + '"></td>' +
-					'</tr>' +
-				'</thead>' +
+				(this.opt('columnHead') ?
+					'<thead class="fc-head">' +
+						'<tr>' +
+							'<td class="fc-head-container ' + theme.getClass('widgetHeader') + '"></td>' +
+						'</tr>' +
+					'</thead>' :
+					''
+					) +
 				'<tbody class="fc-body">' +
 					'<tr>' +
 						'<td class="' + theme.getClass('widgetContent') + '"></td>' +

+ 1 - 0
src/defaults.js

@@ -10,6 +10,7 @@ Calendar.defaults = {
 	nextDayThreshold: '09:00:00', // 9am
 
 	// display
+	columnHead: true,
 	defaultView: 'month',
 	aspectRatio: 1.35,
 	header: {