mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-09-12 12:21:04 +08:00
allow ajax data parameter to be specified as a function
(test updated by arshaw after-the-fact)
This commit is contained in:
committed by
Adam Shaw
parent
155b78cc1a
commit
c93f64fc8b
+7
-1
@@ -136,7 +136,13 @@ function EventManager(options, _sources) {
|
||||
var success = source.success;
|
||||
var error = source.error;
|
||||
var complete = source.complete;
|
||||
var data = $.extend({}, source.data || {});
|
||||
var custom_data;
|
||||
if ($.isFunction(source.data)) {
|
||||
custom_data = source.data();
|
||||
} else {
|
||||
custom_data = source.data;
|
||||
}
|
||||
var data = $.extend({}, custom_data || {});
|
||||
var startParam = firstDefined(source.startParam, options.startParam);
|
||||
var endParam = firstDefined(source.endParam, options.endParam);
|
||||
if (startParam) {
|
||||
|
||||
Reference in New Issue
Block a user