diff --git a/docs/events-and-sources.txt b/docs/events-and-sources.txt index af896fc..5df6448 100644 --- a/docs/events-and-sources.txt +++ b/docs/events-and-sources.txt @@ -29,13 +29,13 @@ The following options determine *how* events get on the calendar: start: start.getTime(), end: end.getTime() }, - function(result) { + function(events) { - // format the result into an array of CalEvents + // make sure the events are official CalEvent objects // (not seen here) - // then, pass the CalEvent array to the callback - callback(calevents); + // then, pass the events to the callback + callback(events); }); @@ -124,4 +124,4 @@ CalEvent: **source**: Array/String/Function (automatically populated) A reference to the original array, JSON URL, or function the event came from. Do not worry about populating this value, FullCalendar will - do this automatically. \ No newline at end of file + do this automatically. diff --git a/docs/index.txt b/docs/index.txt index 12efc4f..98484e2 100644 --- a/docs/index.txt +++ b/docs/index.txt @@ -116,7 +116,7 @@ Basic Options of the calendar. When hidden with ``false``, all-day events will not be displayed in agenda views. -**allDayText**: Boolean, *Default*: ``'all-day'`` +**allDayText**: String, *Default*: ``'all-day'`` In the agenda views, the text titling the "all-day" slot at the top of the calendar. **firstHour**: Integer, *Default*: 6 diff --git a/examples/json.html b/examples/json.html index de892ee..b5ecd6b 100644 --- a/examples/json.html +++ b/examples/json.html @@ -34,6 +34,7 @@ editable: true, events: "json-events.php", + cache: false, eventDrop: function(event, delta) { alert(event.title + ' was moved ' + delta + ' days\n' + @@ -77,4 +78,4 @@
json-events.php needs to be running in the same directory.