Commit e011ca5b15b2dc3cc858305da99303c52c67584f
1 parent
978a52e9
Fixed problem with ajax re-rendering.
Added ajax reRender sample.
Showing
1 changed file
with
3 additions
and
6 deletions
1 | window.RichFaces = window.RichFaces || {}; | 1 | window.RichFaces = window.RichFaces || {}; |
2 | -//TODO test ajax reRender | ||
3 | RichFaces.Schedule = function(id, locale, options, dateRangeChangeEventName, itemSelectEventName, itemMoveEventName, itemResizeEventName, viewChangeEventName, dateSelectEventName, dateRangeSelectEventName, submitEventFunction) { | 2 | RichFaces.Schedule = function(id, locale, options, dateRangeChangeEventName, itemSelectEventName, itemMoveEventName, itemResizeEventName, viewChangeEventName, dateSelectEventName, dateRangeSelectEventName, submitEventFunction) { |
4 | 3 | ||
5 | var _this = this; | 4 | var _this = this; |
@@ -14,11 +13,6 @@ RichFaces.Schedule = function(id, locale, options, dateRangeChangeEventName, ite | @@ -14,11 +13,6 @@ RichFaces.Schedule = function(id, locale, options, dateRangeChangeEventName, ite | ||
14 | */ | 13 | */ |
15 | options = jQuery.extend({}, this.messages[locale], options); | 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 | * Utility functions. | 18 | * Utility functions. |
@@ -466,6 +460,9 @@ RichFaces.Schedule = function(id, locale, options, dateRangeChangeEventName, ite | @@ -466,6 +460,9 @@ RichFaces.Schedule = function(id, locale, options, dateRangeChangeEventName, ite | ||
466 | select: dateRangeSelected | 460 | select: dateRangeSelected |
467 | }, options); | 461 | }, options); |
468 | 462 | ||
463 | + jQuery(document).ready(function() { | ||
464 | + _this.delegate = jQuery(_this.scheduleNode).fullCalendar(options); | ||
465 | + }); | ||
469 | }; | 466 | }; |
470 | RichFaces.Schedule.prototype.messages = {}; | 467 | RichFaces.Schedule.prototype.messages = {}; |
471 | /** | 468 | /** |
Please
register
or
login
to post a comment