title: Jquery fullcalendar eventClick function not working
body: <p>I am using the <a href="http://fullcalendar.io/" rel="nofollow"><strong>FullCalendar</strong></a> plugin for my calendar.</p>
  
  <p>I am trying to loop through some ajax data I have acquired and populate my calendar with the relevant fields I want to use.</p>
  
  <p>This is what i'm doing:</p>
  
  <pre><code>for (var i = 0; i &lt; $requests.length; i++)
  { 
    var currEvent = {
      title: $requests[i].staff_name,
      start: new Date($requests[i].start_date),
      end: new Date($requests[i].end_date),
      backgroundColor: $requests[i].color,
      borderColor: $requests[i].color,
      textColor: "white",
    }
  
    $module.fullCalendar(
      'renderEvent',
       currEvent,
       true
     );
   }
  </code></pre>
  
  <p>This will populate my calendar but i've been trying to add the <code>eventClick</code> callback so i can alert out the event's title or something. But everything I do results in either not outputting to the calendar or outputting with the click function doing nothing. How can I render my events and then assign a click function to each one?</p>