Kaynağa Gözat

updated changelog, added some docs, reset permissions, fixed small IE window resize bug

Adam Shaw 16 yıl önce
ebeveyn
işleme
82578fb919

+ 13 - 0
changelog.txt

@@ -1,4 +1,17 @@
 
+version 1.4.2 (12/02/09)
+	- eventAfterRender trigger
+	- getDate & getView methods
+	- height & contentHeight options (explicitly sets the pixel height)
+	- minTime & maxTime options (restricts shown hours in agenda view)
+	- getters [for all options] and setters [for height, contentHeight, and aspectRatio ONLY! stay tuned..]
+	- render method now readjusts calendar's size
+	- bugfixes
+		- lightbox scripts that use iframes (like fancybox)
+		- day-of-week classNames were off when firstDay=1
+		- guaranteed space on right side of agenda events (even when stacked)
+		- accepts ISO8601 dates with a space (instead of 'T')
+
 version 1.4.1 (10/31/09)
 	- can exclude weekends with new 'weekends' option
 	- gcal feed 'currentTimezone' option

+ 9 - 1
docs/colors-and-theming.txt

@@ -76,6 +76,14 @@ Basic Options
 	The calendar's height, however, is determined by this ratio of width-to-height.
 	(Hint: larger numbers make smaller heights).
 	
+**height**: Integer
+	Will make the entire calendar (including header) a pixel height.
+	You may change this after initialization with :ref:`Option Setters<option-getters-setters>`.
+	
+**contentHeight**: Integer
+	Will make the calendar's content area a pixel height.
+	You may change this after initialization with :ref:`Option Setters<option-getters-setters>`.
+	
 .. _allDayDefault:
 
 **allDayDefault**: Boolean, *Default*: ``true``
@@ -128,7 +136,7 @@ Basic Options
 	means 5am), a string like ``'5:30'`` (which means 5:30am) or a string like ``'5:30am'``.
 	
 **maxTime**: Integer/String, *Default*: ``24``
-	In the agenda views, determines the last hour/time that will be displayed, even when
+	In the agenda views, determines the last hour/time (exclusively) that will be displayed, even when
 	the scrollbars have been scrolled all the way down. This can be a number like ``22`` (which
 	means 10pm), a string like ``'22:30'`` (which means 10:30pm) or a string like ``'10:30pm'``.
 	

+ 3 - 1
docs/locale.txt

@@ -100,6 +100,8 @@ jQuery object:
 	a calendar. Call this method whenever the calendar's tab is shown.
 	
 	
+.. _option-getters-setters:
+	
 Dynamically Getting/Setting Properties
 --------------------------------------
 
@@ -114,4 +116,4 @@ You may dynamically *set* some of FullCalendar's options using the following for
 **HOWEVER**, setting only works for the three following options: **apsectRatio**, **contentHeight**, and **height**.
 
 The next version of FullCalendar will have more advancements in this area.
-	
+	

+ 4 - 2
docs/triggered-actions.txt

@@ -415,8 +415,10 @@ $.fn.fullCalendar = function(options) {
 					return options[name];
 				}
 				if (name == 'height' || name == 'contentHeight' || name == 'aspectRatio') {
-					options[name] = value;
-					sizeChanged();
+					if (!contentSizeFixed) {
+						options[name] = value;
+						sizeChanged();
+					}
 				}
 			},
 			

+ 4 - 0
src/misc/foot.txt

@@ -29,6 +29,10 @@
 			firstDay: 1,
 			//weekends: false,
 			
+			minTime: '8am',
+			maxTime: '11:30pm',
+			firstHour: 9,
+			
 			monthNames: ["januari", "februari", "maart", "april", "mei", "juni","juli", "augustus", "september", "oktober", "november", "december"],
 			monthNamesShort: ["jan", "feb", "maa", "apr", "mei", "jun", "jul", "aug","sep", "okt", "nov", "dec"],
 			dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag','donderdag', 'vrijdag', 'zaterdag'],

+ 2 - 4
tests/options.html

@@ -25,13 +25,11 @@
 			
 			//defaultView: 'basicDay',
 			
-			//aspectRatio: 2,
-			
 			//weekends: false,
 			
-			//contentHeight: 500,
 			height: 700,
-			
+			//contentHeight: 500,
+			//aspectRatio: 2,
 			
 			header: {
 				left: 'title',

+ 5 - 2
tests/plain.html

@@ -36,6 +36,8 @@
 				//console.log(this);
 			},
 			
+			minTime: '5',
+			maxTime: '21:30',
 			dayClick: function(dayDate, allDay, ev, view) {
 				alert(dayDate);
 				//console.log('dayClick - ' + dayDate + ', allDay:' + allDay + ' - ' + view.title);
@@ -57,8 +59,8 @@
 			},
 			
 			eventAfterRender: function(event, element, view) {
-				console.log('after render for "' + event.title + '":');
-				console.log(element);
+				//console.log('after render for "' + event.title + '":');
+				//console.log(element);
 			},
 			
 			eventClick: function(event, jsEvent, view) {
@@ -68,6 +70,7 @@
 				//console.log(this);
 				//return false;
 			},
+			
 			/*
 			eventMouseover: function(event, jsEvent, view) {
 				console.log('MOUSEOVER ' + event.title);