estou apanhando bastante desse calendário.
ao click da descrição como faço para executar o evento que abre a modal.?
o evento que executa quando clico nas partes brancas é esse.
var calendar = $('#calendar').fullCalendar({
header: {
left: 'title',
center: 'agendaDay,agendaWeek,month',
right: 'prev,next today'
},
editable: true,
firstDay: 1, // 1(Monday) this can be changed to 0(Sunday) for the USA system
selectable: true,
defaultView: 'month',
axisFormat: 'h:mm',
columnFormat: {
month: 'ddd', // Mon
week: 'ddd d', // Mon 7
day: 'dddd M/d', // Monday 9/7
agendaDay: 'dddd d'
},
titleFormat: {
month: 'MMMM yyyy', // September 2009
week: "MMMM yyyy", // September 2009
day: 'MMMM yyyy' // Tuesday, Sep 8, 2009
},
allDaySlot: false,
selectHelper: true,
select: function(start, end, allDay) {
$('#ExibirModal').modal('show');
$("#descricao").val("");
$("#inicio").val("");
$("#fim").val("");
$("#start").val(start);
$("#end").val(end);
$("#allDay").val(allDay);
$("#Salvar").click(function(){
var title = $('#descricao').val();
if (title) {
calendar.fullCalendar('renderEvent',
{
title: title,
start: start,
end: end,
allDay: allDay
},
true // make the event "stick"
);
}
titulo='';
start='';
end='';
allDay=''
});
![image|690x193](upload://cBwVq7V2Lgx4bltFeBuxVEgeTHN.png)