I have a full calender applicaiton. When I added code for showing a modal
function InitalizeCalendar() {
try {
var calenderEl = document.getElementById("calendar");
if (calenderEl != null) {
var calendar = new FullCalendar.Calendar(calenderEl, {
initialView: "dayGridMonth",
headerToolBar: {
left: 'prev,next,today',
center: 'title',
right: 'dayGridMonth,timeGridWeek,timeGridDay'
},
selectable: true,
editable: false,
select: function (event) {
onShowModal(event, null);
}
});
calendar.render();
}
}
catch (e) {
alert(e)
}
}
function onShowModal(obj, isEventDetail) {
$("#myModal").modal("show");
}
nothing happends. In chrome, when i add a breakpoint to the function it gets triggered.
Anyone here knows what may cause this? I dont get much help to solving the problem in chrome console.