IE和Firefox中的jQuery FullCalendar插件事件限制为3

时间:2012-10-07 19:04:52

标签: jquery events fullcalendar

我为我的日历指定了8个事件。在Chrome中,所有8个都显示在当天的日历中。在IE和Firefox中只有3个出现?我试过改变css并搜索.js文件无济于事。有什么想法吗?

代码:

$('#calendar').fullCalendar({
        firstDay : 1,
        events: [
            {
                title  : 'event1',
                start  : '2012-10-01 11:30:00',
                description: 'This is a cool event'
            },
            {
                title  : 'event2',
                start  : '2012-10-01 12:00:00',
                description: 'This is a cool event'
            },
            {
                title  : 'event3 i say i say i say i say',
                start  : '2012-10-01 12:30:00',
                description: 'This is a cool event and I can\t wait to try it',
                allDay : false // will make the time show
            },
            {
                title  : 'event4',
                start  : '2012-10-01 1:30:00',
                description: 'This is a cool event'
            },
            {
                title  : 'event5',
                start  : '2012-10-01 2:30:00',
                description: 'This is a cool event'
            },
            {
                title  : 'event6',
                start  : '2012-10-01 3:30:00',
                description: 'This is a cool event'
            },
            {
                title  : 'event7',
                start  : '2012-10-01 6:30:00',
                description: 'This is a cool event'
            },
            {
                title  : 'event8',
                start  : '2012-10-01 7:30:00',
                description: 'This is a cool event'
            }
        ],

        eventClick: function(calEvent, jsEvent, view) {

            alert('Event: ' + calEvent.title + '\nDesc: ' + calEvent.description);
        },

        dayClick: function(date, allDay, jsEvent, view) {

            if (allDay) {
                alert('Clicked on the entire day: ' + date);
            }else{
                alert('Clicked on the slot: ' + date);
            }
        }
});

1 个答案:

答案 0 :(得分:3)

如果小时只有一个数字,您必须使用24小时格式并在前缀为零。

http://jsfiddle.net/mH3pg/