jQuery Fullcalendar:禁用事件网格

时间:2015-11-26 14:05:42

标签: javascript jquery events gridview fullcalendar

我的完整日历会看到这样的时刻: Screen Fullcalendar before

是否可以禁用网格功能,以便无间隙地显示事件。例如,像这样:

Screen Fullcalendar after

当前代码:

$('#calendar').fullCalendar({
        header: {
            left: 'prev,next today',
            right: 'title'
        },
        currentLangCode: 'de',
        lang: 'de',
        buttonIcons: true,
        weekNumbers: true,
        editable: false,
        eventLimit: false,
        firstDay: 1,
        height: 'auto',
        events: {
            url: 'ajax/ajax.get_events.php?simulate_user=<?=$_SESSION['admin']['simulate_user'];?>'
        },
        eventClick: function(calEvent, jsEvent, view) {
            if(calEvent.project_id != 0)
                window.open('projects.php?uid='+calEvent.project_id, '_blank');
        },
        eventAfterRender:  function (event, element) {
            if(event.time > 0)
            {
                var maxHeight = 1000;
                var minHeight = element.outerHeight();
                var height = event.time / 1.5;

                if(height > maxHeight) height = maxHeight;
                if(height < minHeight) height = minHeight;

                $(element).height(height);
            }
        },
        eventRender: function (event, element) {
            element.find('.fc-title').html(event.title);

        },
        hiddenDays: [0]
    });

0 个答案:

没有答案