Full Calendar collapse or hide if more than 2 events are set in one day
<p>I'm trying to avoid Full Calendar from expanding unexpectedly if there are more than 2 events in one day. Depending on the star date and end date events might spannmore than one day. So the code must be aware of that there might be a spanned event passing through that day of the calendar. Events are coming from controler and looping by smarty between {} tags but if you do not have knowledge about smary just assume it a normal php code. I read the documentation but  there wasn't something about such a function. Im planing to implement a button in to the full callendar which is only seen if there is more than 2 daily or spanned event in that day to hide and show the events after 2nd event. I'm using the Full Calendar in monthly view. Does anyone know how to do that?</p>

<p>Here is my jQ:</p>

<pre><code>    $('#calendar').fullCalendar({
    events: [
        {foreach from=$permissions item=p}
            {
                title: '{$p.start_hour}:{$p.start_min} {$p.fname} {$p.lname}',
                start: '{$p.start_date}',
                end: '{$p.end_date}'
            },   
        {/foreach}
            ]
});
</code></pre>

<p>HTML:</p>

<pre><code>&lt;div style="float: left; margin-left: 20px;" id="calendar" class="span7"&gt;&lt;/div&gt;
</code></pre>
