From e011ca5b15b2dc3cc858305da99303c52c67584f Mon Sep 17 00:00:00 2001 From: Bernard Labno Date: Fri, 7 Jan 2011 07:40:46 +0000 Subject: [PATCH] Fixed problem with ajax re-rendering. Added ajax reRender sample. --- src/main/resources/org/richfaces/renderkit/html/scripts/richfaces.schedule.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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 = {}; /** -- libgit2 0.24.0