从版本1升级 success: function(data)
{
$scope.result = true;
$scope.$apply();
},
error: function (data)
{
$scope.result = false;
$scope.$apply();
},
到最新版本2.3.2时收到错误:FullCalendar
在升级之前它起作用了。
这是我点击一天添加新活动的时间。
这是初始化日历代码。
TypeError:this._ordinalParse is undefined.
在加载jquery之后和加载 $('#calendarVehicleID1').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,basicWeek,basicDay'
},
editable: true,
height: 300,
events: {
url: 'Calendar.cfc',
data: function () {
return {
method: 'getEvents',
vehicle: iVehicleID,
CustomerID: $('#CustomerID').val(),
ServiceCenterID: $('#ServiceCenterID'+iVehicleID).val()
}
},
error: function() {}
},
loading: function(bool) {
$('#loadingVehicleID1').toggle(bool);
if (!bool) {
$('#Vehicle1_5').height($('#calendarVehicleID1').height());
$('#Container2').height($('#calendarVehicleID1').height()+60);
}
},
eventRender: function (event, element) {
element.attr('href', 'javascript:void(0);');
element.addClass(event.className);
element.attr('onclick', 'openCalendarUpdate("' +
event.title + '","' +
event.description + '","' +
event.startDate + '","' +
event.endDate + '","' +
event.customerid + '","' +
event.servicecenterid + '","' +
event.servicecentername + '","' +
event.productid + '","' +
event.location + '","' +
event.textreminder +
'");');
},
disableDragging: true,
dayClick: function(date, jsEvent, view) {
selectedCalendarDate = date;
$('#dialog-enter-event').dialog('open');
setEventDialogData();
//openEventModal(date, 1);
},
});
之前我有moment.min.js
答案 0 :(得分:0)
在dayClick函数中应用以下代码后,它现在正在运行。
selectedCalendarDate = date.formatDate();