diff --git a/changelog.txt b/changelog.txt index b9c5d8f..c48c7e4 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,16 @@ +version 1.4.3 (12/22/09) + - added destroy method + - Google Calendar event pages respect currentTimezone + - caching now handled by jQuery's ajax + - protection from setting aspectRatio to zero + - bugfixes + - parseISO8601 and DST caused certain events to display day before + - button positioning problem in IE6 + - ajax event source removed after recently being added, events still displayed + - event not displayed when end is an empty string + - dynamically setting calendar height when no events have been fetched, throws error + version 1.4.2 (12/02/09) - eventAfterRender trigger - getDate & getView methods diff --git a/docs/methods.txt b/docs/methods.txt index 9618192..b68c371 100644 --- a/docs/methods.txt +++ b/docs/methods.txt @@ -99,6 +99,12 @@ jQuery object: This method is useful in the scenario where a tab setup might hide/show a calendar. Call this method whenever the calendar's tab is shown. +**destroy** - .fullCalendar(``'destroy'``) + Restores the element to the state before FullCalendar was initialized. Removes elements, + events handlers, and data. + + *Available in v1.4.3 and later* + .. _option-getters-setters: diff --git a/examples/json.html b/examples/json.html index b5ecd6b..d61b858 100644 --- a/examples/json.html +++ b/examples/json.html @@ -34,7 +34,6 @@ editable: true, events: "json-events.php", - cache: false, eventDrop: function(event, delta) { alert(event.title + ' was moved ' + delta + ' days\n' + diff --git a/src/main.js b/src/main.js index 0901066..72d0d0f 100644 --- a/src/main.js +++ b/src/main.js @@ -365,7 +365,7 @@ $.fn.fullCalendar = function(options) { url: src, dataType: 'json', data: params, - cache: false, + cache: options.cacheParam || false, // don't let jquery prevent caching if cacheParam is being used success: reportEventsAndPop }); } diff --git a/src/util.js b/src/util.js index 41d9e2a..b921458 100644 --- a/src/util.js +++ b/src/util.js @@ -115,6 +115,7 @@ var parseDate = fc.parseDate = function(s) { var parseISO8601 = fc.parseISO8601 = function(s, ignoreTimezone) { // derived from http://delete.me.uk/2005/03/iso8601.html + // TODO: for a know glitch/feature, read tests/issue_206_parseDate_dst.html var m = s.match(/^([0-9]{4})(-([0-9]{2})(-([0-9]{2})([T ]([0-9]{2}):([0-9]{2})(:([0-9]{2})(\.([0-9]+))?)?(Z|(([-+])([0-9]{2}):([0-9]{2})))?)?)?)?$/); if (!m) { return null; diff --git a/tests/issue_206_parseDate_dst.html b/tests/issue_206_parseDate_dst.html index 805b965..f228c65 100644 --- a/tests/issue_206_parseDate_dst.html +++ b/tests/issue_206_parseDate_dst.html @@ -29,6 +29,9 @@ title: 'Yay Tehran!', start: '2010-03-21' // should NOT show up on the 20th //allDay: false // if uncommented, will show 1am + + // HOWEVER, when set to 2010-03-21T00:30:00, this ends up being 2010-03-21T01:30:00 + // should it be 2010-03-21T01:00:00 instead!!?? } ] }); diff --git a/tests/issue_221_quick_remove_source.html b/tests/issue_221_quick_remove_source.html index bf37789..d16bd34 100644 --- a/tests/issue_221_quick_remove_source.html +++ b/tests/issue_221_quick_remove_source.html @@ -3,11 +3,6 @@