diff --git a/src/main/resources/org/richfaces/renderkit/html/scripts/richfaces.schedule.js b/src/main/resources/org/richfaces/renderkit/html/scripts/richfaces.schedule.js index 6aac85a..68d61bc 100644 --- a/src/main/resources/org/richfaces/renderkit/html/scripts/richfaces.schedule.js +++ b/src/main/resources/org/richfaces/renderkit/html/scripts/richfaces.schedule.js @@ -1,5 +1,4 @@ window.RichFaces = window.RichFaces || {}; -//TODO test ajax reRender RichFaces.Schedule = function(id, locale, options, dateRangeChangeEventName, itemSelectEventName, itemMoveEventName, itemResizeEventName, viewChangeEventName, dateSelectEventName, dateRangeSelectEventName, submitEventFunction) { var _this = this; @@ -14,11 +13,6 @@ RichFaces.Schedule = function(id, locale, options, dateRangeChangeEventName, ite */ options = jQuery.extend({}, this.messages[locale], options); - jQuery(document).ready(function() { - _this.delegate = jQuery(_this.scheduleNode).fullCalendar(options); - }); - - // --- /** * Utility functions. @@ -466,6 +460,9 @@ RichFaces.Schedule = function(id, locale, options, dateRangeChangeEventName, ite select: dateRangeSelected }, options); + jQuery(document).ready(function() { + _this.delegate = jQuery(_this.scheduleNode).fullCalendar(options); + }); }; RichFaces.Schedule.prototype.messages = {}; /**