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 endParam = firstDefined(source.endParam, options.endParam);
|
||||
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) {
|
||||
data[endParam] = Math.round(+rangeEnd / 1000);
|
||||
data[endParam] = (options.startEndDateOnly) ? (rangeEnd.getYear()+'-'+(rangeEnd.getMonth()+1)+'-'+rangeEnd.getDate()) : Math.round(+rangeEnd / 1000);
|
||||
}
|
||||
pushLoading();
|
||||
$.ajax($.extend({}, ajaxDefaults, source, {
|
||||
|
|
|
@ -19,10 +19,12 @@ var defaults = {
|
|||
allDayDefault: true,
|
||||
ignoreTimezone: true,
|
||||
|
||||
|
||||
// event ajax
|
||||
lazyFetching: true,
|
||||
startParam: 'start',
|
||||
endParam: 'end',
|
||||
startEndDateOnly: false,
|
||||
|
||||
// time formats
|
||||
titleFormat: {
|
||||
|
|
Loading…
Reference in a new issue