79434674

Date: 2025-02-12 22:52:32
Score: 0.5
Natty:
Report link

Okay i found out it in inline.js you just need to add function at end

 function showMoreEventsModal(date) {
        $.ajax({
            url: WPFC.ajaxurl,
            method: 'POST',
            data: { action: 'wpfce_get_events', date: date },
            success: function (response) {
                let content = '<h3>Events on ' + date + '</h3>';
                response.forEach(event => {
                    content += `<p><a href="${event.url}" target="_blank">${event.title} </a></p>`;
                });
                $('#wpfce-modal-content').html(content);
                $('#wpfce-modal').fadeIn();
            }
        });
    }

and that after eventRender

eventAfterAllRender: function(view) {
    $('.fc-more').on('click', function(e) {
        e.preventDefault();
        var date = $(this).closest('.fc-day').attr('data-date');
        showMoreEventsModal(date);
    });
} 
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: CodingMonster