2012-10-07 52 views
0

我有8個爲我的日曆指定的事件。在Chrome中,全部8個日曆都顯示在日曆中。在IE和Firefox中只有3個顯示出來?我試過改變CSS和擦拭.js文件無濟於事。有任何想法嗎?在IE和Firefox中jQuery FullCalendar插件事件被限制爲3個

代碼:

$('#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); 
      } 
     } 
}); 

回答

3

您必須使用24小時格式和前綴的零,如果小時只有一個號碼。

http://jsfiddle.net/mH3pg/

+0

在你的小提琴中,我只在IE中看到5個事件。 – Ohgodwhy

+1

如果你看看代碼,我故意留下event7和8,以證明它不起作用,如果你不添加前導零。 –

+0

很好玩,你贏了! – Ohgodwhy

相關問題