Commit e011ca5b15b2dc3cc858305da99303c52c67584f

Authored by bernard
1 parent 978a52e9

Fixed problem with ajax re-rendering.

Added ajax reRender sample.
1 1 window.RichFaces = window.RichFaces || {};
2   -//TODO test ajax reRender
3 2 RichFaces.Schedule = function(id, locale, options, dateRangeChangeEventName, itemSelectEventName, itemMoveEventName, itemResizeEventName, viewChangeEventName, dateSelectEventName, dateRangeSelectEventName, submitEventFunction) {
4 3
5 4 var _this = this;
... ... @@ -14,11 +13,6 @@ RichFaces.Schedule = function(id, locale, options, dateRangeChangeEventName, ite
14 13 */
15 14 options = jQuery.extend({}, this.messages[locale], options);
16 15
17   - jQuery(document).ready(function() {
18   - _this.delegate = jQuery(_this.scheduleNode).fullCalendar(options);
19   - });
20   -
21   -
22 16 // ---
23 17 /**
24 18 * Utility functions.
... ... @@ -466,6 +460,9 @@ RichFaces.Schedule = function(id, locale, options, dateRangeChangeEventName, ite
466 460 select: dateRangeSelected
467 461 }, options);
468 462
  463 + jQuery(document).ready(function() {
  464 + _this.delegate = jQuery(_this.scheduleNode).fullCalendar(options);
  465 + });
469 466 };
470 467 RichFaces.Schedule.prototype.messages = {};
471 468 /**
... ...
Please register or login to post a comment