Преглед на файлове

rename columnHead -> columnHeader

Adam Shaw преди 8 години
родител
ревизия
19ba48ee6d
променени са 4 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 1 1
      src/agenda/AgendaView.js
  2. 1 1
      src/basic/BasicView.js
  3. 1 1
      src/defaults.js
  4. 3 3
      tests/view-render/columnHeader.js

+ 1 - 1
src/agenda/AgendaView.js

@@ -101,7 +101,7 @@ var AgendaView = FC.AgendaView = View.extend({
 
 
 		return '' +
 		return '' +
 			'<table class="' + theme.getClass('tableGrid') + '">' +
 			'<table class="' + theme.getClass('tableGrid') + '">' +
-				(this.opt('columnHead') ?
+				(this.opt('columnHeader') ?
 					'<thead class="fc-head">' +
 					'<thead class="fc-head">' +
 						'<tr>' +
 						'<tr>' +
 							'<td class="fc-head-container ' + theme.getClass('widgetHeader') + '">&nbsp;</td>' +
 							'<td class="fc-head-container ' + theme.getClass('widgetHeader') + '">&nbsp;</td>' +

+ 1 - 1
src/basic/BasicView.js

@@ -108,7 +108,7 @@ var BasicView = FC.BasicView = View.extend({
 
 
 		return '' +
 		return '' +
 			'<table class="' + theme.getClass('tableGrid') + '">' +
 			'<table class="' + theme.getClass('tableGrid') + '">' +
-				(this.opt('columnHead') ?
+				(this.opt('columnHeader') ?
 					'<thead class="fc-head">' +
 					'<thead class="fc-head">' +
 						'<tr>' +
 						'<tr>' +
 							'<td class="fc-head-container ' + theme.getClass('widgetHeader') + '">&nbsp;</td>' +
 							'<td class="fc-head-container ' + theme.getClass('widgetHeader') + '">&nbsp;</td>' +

+ 1 - 1
src/defaults.js

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

+ 3 - 3
tests/view-render/columnHead.js → tests/view-render/columnHeader.js

@@ -1,5 +1,5 @@
 
 
-describe('columnHead', function() {
+describe('columnHeader', function() {
 	pushOptions({
 	pushOptions({
 		defaultDate: '2014-05-11'
 		defaultDate: '2014-05-11'
 	});
 	});
@@ -12,7 +12,7 @@ describe('columnHead', function() {
 
 
 		describe('when off', function() {
 		describe('when off', function() {
 			pushOptions({
 			pushOptions({
-				columnHead: true
+				columnHeader: true
 			});
 			});
 
 
 			it('should show header', function() {
 			it('should show header', function() {
@@ -23,7 +23,7 @@ describe('columnHead', function() {
 
 
 		describe('when on', function() {
 		describe('when on', function() {
 			pushOptions({
 			pushOptions({
-				columnHead: false
+				columnHeader: false
 			});
 			});
 
 
 			it('should not show header', function() {
 			it('should not show header', function() {