Fullcalendar在timelineWeek视图中不会进入当前日期

时间:2017-10-04 06:14:57

标签: jquery fullcalendar momentjs fullcalendar-scheduler

我已经购买了Fullcalendar许可证。但我面临的问题是因为它没有自动滚动到timelineWeek,timelineMonth view中的当前日期。我已经附加了我尝试过的代码snipet。

if $('#eventcalendarsub').length > 0
		$('#eventcalendarsub,#eventcalendarsubbig').fullCalendar
			scrollTime: moment().subtract(3, 'h')
			disableDragging:true
			nowIndicator:true
			editable: false
			height: 390
			header:
				left: 'today prev,next'
				center: 'title'
				right: 'timelineDay,timelineWeek,timelineMonth'
			defaultView: 'timelineDay'
			resourceLabelText: 'ABC/XYZ'
			resources:
				url: '/ABC.json'
				error: ->
					alert 'There was an error while fetching events!'
					return
			events:
				url: '/XYZ.json'
				error: ->
					alert 'There was an error while fetching resources!'
					return

所以请帮助我们实现此功能。

0 个答案:

没有答案