option for date only for next/prev...
This commit is contained in:
parent
477c2960a8
commit
383e3d23e4
2 changed files with 4 additions and 2 deletions
|
@ -130,10 +130,10 @@ function EventManager(options, _sources) {
|
||||||
var startParam = firstDefined(source.startParam, options.startParam);
|
var startParam = firstDefined(source.startParam, options.startParam);
|
||||||
var endParam = firstDefined(source.endParam, options.endParam);
|
var endParam = firstDefined(source.endParam, options.endParam);
|
||||||
if (startParam) {
|
if (startParam) {
|
||||||
data[startParam] = Math.round(+rangeStart / 1000);
|
data[startParam] = (options.startEndDateOnly) ? (rangeStart.getYear()+'-'+(rangeStart.getMonth()+1)+'-'+rangeStart.getDate()) : Math.round(+rangeStart / 1000);
|
||||||
}
|
}
|
||||||
if (endParam) {
|
if (endParam) {
|
||||||
data[endParam] = Math.round(+rangeEnd / 1000);
|
data[endParam] = (options.startEndDateOnly) ? (rangeEnd.getYear()+'-'+(rangeEnd.getMonth()+1)+'-'+rangeEnd.getDate()) : Math.round(+rangeEnd / 1000);
|
||||||
}
|
}
|
||||||
pushLoading();
|
pushLoading();
|
||||||
$.ajax($.extend({}, ajaxDefaults, source, {
|
$.ajax($.extend({}, ajaxDefaults, source, {
|
||||||
|
|
|
@ -19,10 +19,12 @@ var defaults = {
|
||||||
allDayDefault: true,
|
allDayDefault: true,
|
||||||
ignoreTimezone: true,
|
ignoreTimezone: true,
|
||||||
|
|
||||||
|
|
||||||
// event ajax
|
// event ajax
|
||||||
lazyFetching: true,
|
lazyFetching: true,
|
||||||
startParam: 'start',
|
startParam: 'start',
|
||||||
endParam: 'end',
|
endParam: 'end',
|
||||||
|
startEndDateOnly: false,
|
||||||
|
|
||||||
// time formats
|
// time formats
|
||||||
titleFormat: {
|
titleFormat: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue